The literal xyz of type int is out of range
问题 I am working with data types at the moment in Java, and if I have understood correctly the type long accepts a value between the ranges of: -9,223,372,036,854 to +9,223,372,036,854,775,807. Now as you can see below I have create a Long variable called testLong , although when I insert 9223372036854775807 as the value, I get an error stating: "The literal 9223372036854775807 of the type int is out of range." I don't know why it is referring to the long data type as an int Anyone have any ideas