The
integral types in Java are all signed
two's-complement integers. A
byte ranges from -128 to 127 (8-bit); a
short from -32768 to 32767 (16-bit); an
int from -2147483648 to 2147483647 (32-bit); a
long from
-9223372036854775808 to 9223372036854775807 (64-bit). All ranges are inclusive. The floating point types are all
IEEE 754 floating point numbers. The
char type is an integral type which ranges from 0 to 65535.