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`
AnswerD.
Runtime error
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board