Vidyalelo
Java Programming · Q285

Interfaces and Abstract Classes

Programming · Java Programming · question 285

Q285

What will be the output of the following Java code? class Output public static void main(String args[]) Double i = new Double(257.5); boolean x = i.isNaN(); System.out.print(x);

A.
true
B.
false
Answer
C.
0
D.
1

Answer: Option B

Solution

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