Signing you in…

Math Operations and the Math Class

The Math class (java.lang.Math) provides a comprehensive set of static methods for common mathematical operations: rounding, trigonometry, exponentiation, logarithms, and random numbers. All methods are static — you never instantiate Math. For performance-critical code, StrictMath guarantees bit-for-bit reproducible results across platforms.

Constants and basic operations
Content is available with subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.