Vidyalelo
Java Programming · Q16

Java Autoboxing

Programming · Java Programming · question 16

Q16

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

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