/*
* 类型转换:①隐式转换②强制转换
* 隐式转换:byte,short,char,首先byte,short,char默认转成int----int---如果有更大类型转成long---如果有更大类型转成float---如果有更大类型转成double
*/
public class TypeDemo {
public static void main(String[] args) {
int a=10;
int b=20;
System.out.println(a+b);
byte c=100;
int d=35;
System.out.println(c+d);//自动转成int类型
}
}