总结:

==的意义在于比较的是整型

package com.aa;

//
public class Bd {
public static void main(String[] args) {
Integer i1 = 124;
Integer i2 = 124;
Integer i3 = 125;
Integer i4 = 125;
System.out.println(i1 == i2);
System.out.println(i1.equals(i2));
System.out.println(i3 == i4);
}
} true
true
true

  

05-15 10:09