Java is a very versatile programming language. Therefore there are a number of ways to carry out arithmetic operations in Java. Java is a very versatile programming language. Therefore there are a number of ways to carry out arithmetic operations in Java.
Source: https://higheducationlearning.com/how-can-you-square-a-number-in-java/