Vidyalelo
Java Programming · Q11

Java Autoboxing

Programming · Java Programming · question 11

Q11

What is the result of the following code in Java? Integer a = 1000; Integer b = 1000; System.out.println(a == b);

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

Answer: Option C

Solution

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