Java operators enable us to manipulate variables. For the purpose of this book, we will only cover the Arithmetic Operators, Relational Operators, Logical Operators, and Assignment Operators.
Arithmetic Operators:
Arithmetic operators are used for performing mathematical operations. Below is a list of arithmetic’s operators in Java.
Operator
Description
Addition (+)
Use to add values together
Subtraction (-)
Use for subtraction
Division (/)
Use for division
Multiplication (*)
Use for multiplication
Modulus (%)
Use for division; returns a remainder.