byte | -128~127 | byte a=100; |
short | -32768~32767 | short r=1999; |
int | -2147483648~2147483647 | int a=1000; |
long | -2^63~2^63-1 | long a=1000L; |
float | 32-bit single-precision | float f1=234.5f |
double | 64-bit double precision | double d1=123.4 |
boolean | represents one bit of information | boolean one=true |
char | 16-bit Unicode character('\u0000'~'\uffff') | char letter='A' |