Integer a=140;
Integer b=140;
Integer a1=1;
Integer b1=1;
int c=140;
Object a2=a;
Object b2=b;
//注意Integer常量池范围
System.out.println(a==b);
//注意,编译时看左运行时看右,实际调用的的Integer的equals方法
System.out.println(a.equals(b));
//注意自动拆箱
System.out.println(a==c);