which class is used for mathematical method in java program how it is used
Answers
Answered by
3
Explanation:
Math class is used for mathematical methods in java program.it comes under default package,java.lang package.
use of it.
Math.sqrt() is a function under Math class.it is used to find the square root of a number and returns double value.
Math.random() is a function under Math class.it is used to generate a random floating number between 0 and 1..
Similar questions