java----05八大数据类型

 整型

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

猜你喜欢

转载自blog.csdn.net/ningmengbu_suan/article/details/107582832