class Test
{
public static void main(String[] args)
{
Integer x = new Integer("123");
Integer y = new Integer(123);
sop("x==y:"+(x==y));
Integer m = 127;
Integer n = 127;
sop(m==n);
}
public static void sop(Object obj)
{
System.out.println(obj);
}
}
输出
x==y:false
true