Java中的数据类型所占字节数 数据类型所占字节数byte1short2int4long8float4double8boolean1char2 【注】:计算机存储容量的基本单位是字节 1byte=8bit