1、8种
基本数据类型:int long short byte double float boolean char
3种引用数据类型:类,接口,数组
2、boolean类型不能转换成其他的数据类型
整型 字符型 浮点型的数据在混合运输按中可以互相转换。
字符按Ascall码来运算
容量小的数据类型自动向容量大的数据类型转换,此处的容量值得是表示数字的容量,不是内存中所定的字节数。
byte short char -> int -> long -> float -> double
byte short char 之间不用互相转换,他们三者在计算时首先转换为int型。