整型
1. byte 1字节8位
2. short 2个字节16位
3. int 4个字节32位
4. long 8个字节64位
字符型
5.char 占用2个字节 采用uncode编码。支持中文编码
浮点型
6. float 4个字节
7. double 8个字节 用的最多
布尔型
8. boolean
true false
整型
1. byte 1字节8位
2. short 2个字节16位
3. int 4个字节32位
4. long 8个字节64位
字符型
5.char 占用2个字节 采用uncode编码。支持中文编码
浮点型
6. float 4个字节
7. double 8个字节 用的最多
布尔型
8. boolean
true false