妙博客

世界上最可怜的人,结构没破位赚一点就跑,结构破位死扛幻想反转

Java中8种基础数据类型

    

        boolean、byte、char、short、int、float、long、double

     boolean占1个字节

     byte占1个字节,-2^7 ~ 2^7 - 1

     char占2个字节,可以存储一个汉字

     short占2个字节,-2^15 ~ 2^15-1

     int占4个字节,-2^31 ~ 2^31-1

     float占4个字节

     long占8个字节,-2^63 ~ 2^63-1

     double占8个字节


Copyright Your 142132.com Rights Reserved. 赣ICP备17010829号-2