1.数据类型
八大基本数据类型:(整数类)int ,short,byte,long
(浮点类)double,float
(字符类)char
(布尔型)boolean
其对应的包装类型:Integer,Short,Byte,Long,Double,Float,Character,Boolean
String类
类类型
2.基本数据类型之间的转换:
转换规则:
1)有低转换为高,
java
自动转换。public static void main(String[] args) { int a = 10; double b = a; System.out.println(b); }</