Java Operators

Numeric operators

arithmetic operators

+addition
-subtraction
*multiplication
/division
%modulus (remainder)

unary operators

+unary plus      ++increment
-unary minus      --decrement

compound assignment operators

+= -= *= /= %=
For each compound assignment operator op=,
x op= y;   is the same as   x = x op y;

Relational (comparison) operators

==equal to      !=not equal to
>greater than      >=greater than or equal to
<less than      <=less than or equal to

Logical (boolean) operators

!NOT (unary)
&&AND
||OR

See Java operator precedence for information about Java's order of operations.