Vidyalelo
Java Programming · Q9

Java Autoboxing

Programming · Java Programming · question 9

Q9

What is the result of the following code in Java? Integer x = 5; Integer y = 5; System.out.println(x == y);

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

Answer: Option C

Solution

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