Q. What is the output of System.out.println(Math.sqrt(25));?
Solution:
Math.sqrt() returns the square root of a number as a double, so sqrt(25) = 5.0.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Math.sqrt() returns the square root of a number as a double, so sqrt(25) = 5.0.
Strengthen Your Practice with our comprehensive question bank.