Multiple choice technology programming languages

What is the result Integer i1=10; Integer i2=10; (i1==i2)-->result of this

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java, Integer objects with values in the range of -128 to 127 are cached by the JVM. Because 10 falls within this cached range, both references point to the same object instance, making the identity comparison i1 == i2 evaluate to true.