Integer a = 127;相当于Integer i = new Integer(127);
Integer b = 127
System.out.println(a==b);
Integer c = 128;
Integer d = 128;
System.out.println(c==d);
结果分别是true和false,为什么啊?Integer a = 127;相当于Integer i = new Integer(127);Integer d = 128也应该相当于Integer i = new Integer(127)才对的啊,new的对象应该是不同的啊?