The Java data has a byte (byte) short int long
Short is two bytes, which equals 2 byte.
An int equals two short and is equal to 4 byte.
A long is equal to two int, or equal to 8 byte.
Since computer numbers are 2-in-binary relationships, they are multiples of 2,
2 byte = 1 short 2 short= 1 int 2 int = 1 long
8 byte= 4 short = 2 int =1 long
The three types are as follows:
1,
Basic type: Short bits number: 16
Packing class: Java.lang.Short
Minimum value: short.min_value=-32768 (-2 of 15 of this side)
Maximum value: short.max_value=32767 (2 of 15 times-1)
2,
Basic type: int bits number: 32
Packing class: Java.lang.Integer
Minimum value: integer.min_value=-2147483648 (-2 of 31 sides)
Maximum value: integer.max_value= 2147483647 (2 of 31 times-1)
3,
Basic type: Long bits number: 64
Packing class: Java.lang.Long
Minimum value: long.min_value=-9223372036854775808 (-2 of 63 sides)
Maximum value: long.max_value=9223372036854775807 (2 of 63 times-1)