经典面试题Integer c=100,d=100 c==d 一定是false吗
相信大家在面试的过程中可能都遇到过这样一道题吧!
public static void main(String[] args) {
Integer a = 1000,b = 1000;
Integer c = 100,d = 100;
System.out.println(a == b);
System.out.println(c == d);
}
相信大家得
原创
2017-12-28 16:36:59 ·
1604 阅读 ·
0 评论