1. What will be the output of the program? System.out.println(Math.sqrt(-4D));
Ask Your Doubts Here
Comments
By: guest on 02 Jun 2017 01.26 am
It is not possible in regular mathematics to get a value for the square-root of a negative number therefore a NaN will be returned because the code is valid.