Arithmetic Operators

Binary Operators
Name Description Sign in Java Technical Usuage Example
Addition Adds operands. Also used in String concatenation. + operand + operand 5 + 2 (yields 7)
Subtraction Subtracts successive operands from first operand. - operand - operand 7 - 5 (yields 2)
Multiplication Multiplicaties operands * operand * operand 2 * 5 (yields 10)
Integer/Real Division Divides first operand by second operand. / operand / operand 10 / 5 (yields 2)
Modulus Does integer division between operands and finds remainder. % operand % operand 10 % 3 (yields 1)
Unary Operators
Name Description Sign in Java Technical Usuage Example
Increment Increment operator - increments a value by 1. ++ operand++ 2++ (yields 3)
Decrement Decrement operator - decrements a value by 1. -- operand-- 2-- (yields 1)