Data Type | Contains | Range of values |
---|---|---|
byte | integer | -128 to +127 |
short | integer | -32768 to +32767 |
int | integer | -2147483648 to +2147483647 |
long | integer | -9223372036854775808 to +9223372036854775807 |
float | real | -3.40282347E+38 to +3.40282347E+38 |
double | real | -1.79769...E+308 to +1.79769...E+308 |
Data type | Notes |
---|---|
char | A - Z, a - z, 0 - 9,
!@#$%^&*() etc. denote literals in single quotes (e.g. 'b') can also be thought of as a small integer |
boolean | only two possible values: true and false |