A. Operator aritmatika

Operator

Arti

+

Addition

-

Subtraction

*

Multiplication

/

Division

%

Modulus

B. Operator assignment

Ekspresi

Arti

x += y

x = x + y

x -= y

x = x y

x *= y

x = x * y

x /= y

x = x / y

C. Operator perbandingan

Operator

Arti

==

Equal

!=

Not equal

<

Less than

>

Greater than

<=

Less than or equal to

>=

Greater than or equal to

D. Operator bitwise

Operator

Arti

&

Bitwise AND

|

Bitwise OR

^

Bitwise XOR

<<

Left shift

>>

Right shift

>>>

Zero fill right shift

~

Bitwise complement

<<=

Left shift assignment (x = x << y)

>>=

Right shift assignment (x = x >> y)

>>>=

Zero fill right shift assignment (x = x >>> y)

x&=y

AND assignment (x = x & y)

x|=y

OR assignment (x = x | y)

x^=y

XOR assignment (x = x ^ y)

E. Operator increment decrement

Operator

Arti

++

increment

--

decrement

F. Operator logika

Operator

Arti

&&

AND

||

OR