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`
AnswerC.
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