0x 10008000000 is out of range. In fact, it doesn't mean that long can't be stored that big, but that this number is an int number. It is actually out of the range of int (the text of int type 0x 10008000000 is out of the range), when assigning integers.
You can modify the assignment language as follows, just specify its type as long? :
long y = 0x 100080000000 l; //
Extended data
The conversion between java plastic and Long integer can be done with long class or string.
1, with the help of long shift:
int new_a = new Long(a)。 int value();
2. With the help of the strings:
int new _ a = integer . parse int(string . value of(y));
Java integer, long integer, floating point boundary value:
Maximum value of int boundary: integer. MAX_VALUE。
Minimum value of int boundary: integer. Minimum value.
Maximum value of long boundary: long. MAX_VALUE。
Minimum value of long boundary: long. Minimum value.
Maximum value of floating boundary: float. MAX_VALUE。
Minimum value of floating point boundary: floating point. minimum value