💻ap computer science a review

Math.sqrt() method

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

The Math.sqrt() method is a built-in function in Java that returns the square root of a number. It takes a single parameter, which is the number whose square root needs to be calculated.

"Math.sqrt() method" also found in:

2,589 studying →