The long keyword
long is a keyword in java that is used to store 64-bit
integer (Java primitive type) value. Keywords
are basically reserved words which have specific meaning relevant to a compiler.
The keyword long in java is also used to declare an expression, method
return value, or variable of type long integer.
Syntex: Here is the syntax that displays how to declare and define a long type variable.
Here are some more examples.
Note: Here are some points that must consider in case of long data type.