Type | Contains | Default | Size | Range |
---|---|---|---|---|
int | Signed integer | 0 | 32 bits | -2147483648 to 2147483647 |
double | IEEE 754 floating point | 0 | 64 bits | +/-4.9E-324 to +/-1.7976931348623157E+308 |
boolean | true or false | false | 1 bit | true of false |
char | Unicode character | \u0000 | 16 bits | U+0000 to U+FFFF |
byte | Signed integer | 0 | 8 bits | -128 to 127 |
short | Signed integer | 0 | 16 bits | -32768 to 32767 |
long | Signed integer | 0 | 64 bits | -9223372036854775808 to 9223372036854775807 |
float | IEEE 754 floating point | 0 | 32 bits | +/-1.4E-45 to +/-3.4028235E+38 |