+=隐式类型转换

public class Test1_DataTypeConversion {

public static void main(String[] args) {
byte b = 1;
b+=1 // b = byte(b+1) 底层自动加上强制转换符
System.out.println(b);

//b=b+1


}

}

原文地址:https://www.cnblogs.com/heureuxl/p/13384343.html