1.

What will be the output of the program?

System.out.println(Math.sqrt(-4D));

A. -2
B. NaN
C. Compile Error
D. Runtime Exception
Answer» C. Compile Error


Discussion

No Comment Found

Related MCQs