1.自动转换 public static void main(String[] args){ int a = 1; byte b = 2; //报错 // byte x = a + b; //byte + int -> int + int = int int y = a + b;//正确 System.out,println(y)