Java中8种基本类型所占的存储空间大小 作为一个专业的javaer, 感觉还是需要背一些东西的, 先写下来, 省得以后老去百度:基本類型 所占bitbyte 8short 16int 32long 64float 32double 64boolean 1(1字节,0位)char 16