内存中占用的字节 byte,boolean在内存中占用1个字节 char,short在内存中占用2个字节 int,float在内存中占用4个字节 long,double在内存中占用8个字节 一个字节是8位,也就是byte,boolean是8位 以此类推