Integer问题

来源:互联网 发布:java 平台 ruby 编辑:程序博客网 时间:2024/06/14 09:25
/**
 * Created by jay on 16-11-24.
 */
public class TestInteger
{
    public static void main(String []args)
    {
        Integer a=127;
        Integer b=127;
        System.out.println(a==b);

        Integer c=128;
        Integer d=128;
        System.out.println(c==d);
    }
}

输出:
true
false
0 0