一.整数类型
1.byte
2.short
3.int
4.long
二.浮点类型(浮点值属于近似值,在系统中运算后的结果可能与实际有偏差)
1.float(单精度浮点类型)
2.double(双精度浮点类型)
三.字符类型
1.char型
char x ='a'等同于char x =97;
2.转义字符
四.布尔类型