Vidyalelo
Java Programming · Q29

Java Autoboxing

Programming · Java Programming · question 29

Q29

What is the result of the following code in Java? Integer num1 = 100; Integer num2 = 100; System.out.println(num1 == num2);

A.
Runtime error
B.
Compilation error
C.
`true`
Answer
D.
`false`

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board