四类八种数据类型 数据类型: 占用字节 布尔值:boolean 不定值 字节型:byte 1 短整型:short 2 整形 :int 4 长整形:long 8 字符型:char 2 单精度浮点型:float 4 双精度浮点型:double 8