Multiple choice technology programming languages

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

  1. True

  2. False

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

In Java, comparing a wrapper class Integer with a primitive int using the == operator triggers automatic unboxing. The Integer object is converted to its primitive value of 10, resulting in a comparison of 10 == 10, which evaluates to true.