Computer Applications

State the value and type of each expression.

Math.sqrt(0.0064)

Java Math Lib Methods

6 Likes

Answer

The output value is 0.08. The type of expression is double.

Explanation

Math.sqrt() method returns the square root of its argument. As square root of 0.0064 is 0.08 hence that is the output. The return type of Math.sqrt() is double so the type of expression is double.

Answered By

2 Likes


Related Questions