Java Mathematical Functions (1)
Java Mathematical Functions (1)
• Java has many built-in packages like java.lang, java.util, java.io etc.
• The java.lang package is imported by default by the java compiler. This
package contains many classes that are required for designing a program.
• The Math class of the java.lang package contains functions / methods for
performing mathematical and trigonometrical functions.
Note : you can invoke the methods of Math class with the class name
directly without creating an object for the class.
x------------------------------------------------------x