标签:integer
Integer a = 128;
Integer b = 128;
System.out.println(a==b);
Integer c = 1;
Integer d = 1;
System.out.println(c==d);
执行结果:false
true
解释原因:
类似String一样
Integer a = 128, Integer b = 128, a==b ; Integer c = 1 , integer d =1 , c==d
标签:integer
原文地址:http://blog.csdn.net/qq_405930170/article/details/45080545