Vidyalelo
Java Programming · Q286

Interfaces and Abstract Classes

Programming · Java Programming · question 286

Q286

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

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

Answer: Option D

Solution

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