J2EE Spring Hibernate Chapter 25: Arithmetic Operators

Arithmetic Operators are those operators that are used for arithmetic or mathematical operators. I am sure you are already familiar with the basic arithmetic operators. They are:

• + addition
• – subtraction
• * multiplication
• / division

These operators can be used in the standard way:
int x = 5 * 3;
int y = x - 4;

System.out.println("x - 4 is " + y); // Prints 11

The Remainder (%)