Primitive Data Types in Java
Boolean: 1-bit
Byte: 1 signed byte (two's complement).
short: 2 bytes, signed (two's complement)
int: 4 bytes, signed (two's complement).
-2,147,483,648 to 2,147,483,647.
long: 8 bytes signed (two's complement).
Ranges from -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807.
float: 4 bytes, IEEE 754.
double: 8 bytes IEEE 754.
char: 2 bytes, unsigned, Unicode