package StringchangeDemo;
public class Demo2 {
public static void main(String[] args) {
Integer A = new Integer(100);
Integer B = new Integer(100);
System.out.println(AB);//比的是地址,是false;
System.out.println("================");
Integer a = 100;
Integer b = 100;//-128,127 Integer,有一个缓存区,里面有地址,超过范围就没有缓存了,要创建地址。
System.out.println(a==b);
Integer a1 = 127;
Integer b1 = 127;
Integer c1 = 200;
System.out.println(a1==b1);
System.out.println(c1);
}
}
标签:第十天,System,127,println,Integer,100,out From: https://www.cnblogs.com/inian/p/18007061