Type | Size in bits | Values | Standard |
---|---|---|---|
boolean | 1 | true or false | |
char | 16 | '\u0000' to '\uFFFF' | ISO Unicode character set |
byte | 8 | -128 to +127 | |
short | 16 | -32,768 to +32,767 | |
int | 32 | -2,147,483,648 to +2,147,483,647 |
|
long | 64 | -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 |
|
float | 32 | -3.40292347E+38 to +3.40292347E+38 |
IEEE 754 floating point |
double | 64 | -1.79769313486231570E+308 to +1.79769313486231570E+308 |
IEEE 754 floating point |
Deitel & Deitel, Fig. 2.18