1 public class Test1_DataTypeConversion { 2 3 public static void main(String[] args) { 4 byte b = 1; 5 b+=1 // b = byte(b+1) 底层自动加上强制转换符 6 System.out.println(b); 7 8 //b=b+1 9 10 11 } 12 13 }
22 +=隐式类型转换
原文:http://www.cnblogs.com/panw3i/p/6329600.html