Q. What is the output of System.out.println(Math.sqrt(25));?

A
5.0
B
25.0
C
5
Solution:

Math.sqrt() returns the square root of a number as a double, so sqrt(25) = 5.0.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!