Java 有 8 种基本数据类型: byte int short long double float Boolean char
区别:
byte int short long 都属于整数类型. Double float 属于浮点类型. Boolean 为布尔类型
Char 为字符型
String 不是基本数据类型.它定义的为对象
Java 有 8 种基本数据类型: byte int short long double float Boolean char
区别:
byte int short long 都属于整数类型. Double float 属于浮点类型. Boolean 为布尔类型
Char 为字符型
String 不是基本数据类型.它定义的为对象