Question:What will be the output, if the following program is run?public class Test8 { public static void main(String[] args) { System.out.println(Math.sqrt(-4)); } }
public class Test8 { public static void main(String[] args) { System.out.println(Math.sqrt(-4)); } }
A null B 2 C NaN D -2.0
+ AnswerC
+ Report