Computer Applications
State the value and type of each expression.
Math.pow(16, 0.25)
Java Math Lib Methods
9 Likes
Answer
The output value is 2.0. The type of expression is double.
Explanation
Math.pow(x, y) returns x raised to the power of y as a double value. Math.pow(16, 0.25) is equivalent to . Hence, output is 2.0 and data type of result is double.
Answered By
2 Likes