2、基本数据类型 基本数据类型(8)引用数据类型(3)整型:byte(8)、short(16)、int(32)、long(64)类(字符串类型是一个类,也属于引用数据类型)浮点型:float(32)、double(64)接口布尔型:boolean(8)数组字符型:char(16)