Primitve Data Type Sizes Summary
Data Type | Smallest Number | Largest Number | Size |
---|---|---|---|
byte | -128 | +127 | 8 |
short | -32 768 | +32 767 | 16 |
int | -2 147 483 648 | +2 147 483 647 | 32 |
long | -9.223372e+18 | 9.223372e+18 | 64 |
float | 3.4e-038 | 3.4e+038 | 32 |
double | 1.7e-308 | 1.7e+308 | 64 |
char | 0 | 65 535 | 16 |
boolean | - | - | 1 |