Square root can be easily obtained in `Java` by using the `Math.sqrt`

function. The Math is a class in Java that contains methods that allows you to perform mathematical operations.

System.out.println(Math.sqrt(9));

**Result**

3

Square root can be easily obtained in `Java` by using the `Math.sqrt`

function. The Math is a class in Java that contains methods that allows you to perform mathematical operations.

System.out.println(Math.sqrt(9));

**Result**

3

## Comments