Computer Applications
Predict the output of the following:
System.out.println(Math.cbrt(42.875));
Java
Java Math Lib Methods
42 Likes
Answer
3.5
Working
Math.cbrt method returns the cube root of its argument as a double value. Cube root of 42.875 is 3.5 so it is the output.
Answered By
24 Likes
Related Questions
Predict the output of the following:
System.out.println(Math.ceil(-0.95));
Predict the output of the following:
System.out.println(Math.sqrt(10.24));
Predict the output of the following:
System.out.println(Math.rint(-99.4));
Predict the output of the following:
System.out.println(Math.min(-25.5, -12.5));