Java Math class provides several methods to work on math calculations like min(), max(), avg(), sin(), cos(), tan(), round(), ceil(), floor(), abs() etc.
It will return the Absolute value of the given value.
It returns the Largest of two values.
It is used to return the Smallest of two values.
It is used to round of the decimal numbers to the nearest value.
It is used to return the square root of a number.
It is used to return the cube root of a number.
It returns the value of first argument raised to the power to second argument.
It is used to find the smallest integer value that is greater than or equal to the argument or mathematical integer.
It returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.
It returns the double value that is closest to the given argument and equal to mathematical integer.
Watch this for understanding java maths function