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));
    }
}
 

A null 

B 2 

C NaN 

D -2.0 

+ Answer
+ Report
Total Preview: 767

Copyright © 2024. Powered by Intellect Software Ltd