i1 == i2
results in un-boxing and a regular int comparison is done. (see first point in JLS 5.6.2)
i2 == i3
results in reference comparsion. Remember, i2 and i3 are two different objects. (see JLS 15.21.3)
i1 == i2
results in un-boxing and a regular int comparison is done. (see first point in JLS 5.6.2)
i2 == i3
results in reference comparsion. Remember, i2 and i3 are two different objects. (see JLS 15.21.3)