Vidyalelo
Java Programming · Q27

Java Autoboxing

Programming · Java Programming · question 27

Q27

What is the result of the following code in Java? Integer x = 1000; Integer y = 1000; System.out.println(x.equals(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