I am working on one hardware interface application where i want to
initialize long data type value by any 8 byte number(as it is fixed
key given in dll file) Example:
long fixedKey=0123456701234567; //error on this line
Error is : The literal 0123456701234567 of type int is out of range
I have seen on Primitive Data Types(Java API) range of long is from
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (19 digit number) .
Obviously my entered number (16 digit number) is in the
range of long data type, so why i am getting this kind of error.
append
Lto the end to make it along literal