Vidyalelo
Java Programming · Q28

Java Autoboxing

Programming · Java Programming · question 28

Q28

In Java, what is the result of the expression `new Integer(5).equals(5)`?

A.
Compilation error
B.
`true`
Answer
C.
Runtime error
D.
None of These

Answer: Option B

Solution

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