4.24 JAVA简单讲解

public 公共的

class 类

数据类型:

     四类八种:

           整型:  byte      2的8次方    1个字节        取值范围256(-128~127)

                       short     2的16次方   2个字节

                       int         2的32次方   4个字节

                       long      2的64次方   8个字节

          浮点型:   float(单精度浮点型)   小数点后的7位   4字节

                          double(双精度浮点型)    小数点后的11位   8字节

          布尔型:boolean                             1个字节   

                                   true / false

          字符型:char       字符用单引号来表示     2个字节

          字符串:String 

                         

原文地址:https://www.cnblogs.com/syx1997/p/8939751.html