Hi,

I wrote the following code:

The output is:Ingeter i1 = 10; Ingeter i2 = 10; if (i1 == i2) Stystem.out.println(" == Integer"); Double d1 = 10.0; Double d2 = 10.0; if (d1 == d2) Stystem.out.println(" == Double");

== Integer

Question:

I'm trying to understand why in one case (Integer, Boolean, String etc) the operation == is true and in oher case (Double,Float etc) the operation is false?

Thanks.