黑马程序员技术交流社区

标题: 程序运行 [打印本页]

作者: 性感不是骚    时间: 2016-4-5 01:14
标题: 程序运行
                int a=0;
                Integer b=0;
                Integer c=new Integer(0);
                Integer d=new Integer(0);


                System.out.println(a==b);
                System.out.println(a==c);
                System.out.println(a==d);

                System.out.println(b==c);
                System.out.println(b==d);
                System.out.println(c==d);
为什么后面3个为false,求大神解答一下




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2