public static void main(String[]args){ Integer i = new Integer(0); int j = 0; System.out.print(i==j); System.out.print(i.equals(j)); } 以上代码的结果是: true true