这里以Integer类型举例: Integer a =1; a +=2;
编译后.calss文件是这样的
Integer a = Integer.valueOf(1); 自动装箱 a = Integer.valueOf(a.intValue() + 2); 自动拆箱,再自动装箱