Operators

Arithmetic Operators

Sign
Operation

+

addition

-

subtraction

*

multiplication

/

division

%

modulus

++

increment

--

decrement

Assignment Operators

Sign
Operation

=

assignment

+=

addition and assignment

-=

subtraction and assignment

*=

multiplication and assignment

/=

division and assignment

%=

modulus and assignment

Logical Operators

Sign
Operation

&&

and

||

or

!

negation

Comparison Operators

Sign
Operation

==

equal to

!=

not equal to

>

greater than

<

less than

>=

greater than or equal to

<=

less than or equal to

Summary of Operators

Java Operator Precedence Table

Java Operators - w3schools

Last updated