You are on page 1of 1

Prioritas Operators Operation Associativity

[] array index
1 () method call left
. member access
++ pre- or postfix increment
-- pre- or postfix decrement
+- unary plus, minus
2 ~ bitwise NOT right
! boolean (logical) NOT
(type) type cast
New object creation
3 */% multiplication, division, remainder left
+- addition, substraction
4 left
+ string concatenation
<< less than, less than or equal to
5 >> greater than, greater than or equal to left
>>> reference test
< <= less than, less than or equal to
6 > >= greater than, greater than or equal to left
Instanceof reference test
== equal to
7 left
!= not equal to
& bitwise AND
8 left
&& boolean (logical) AND
^ bitwise exclusive OR
9 left
^^ boolean (logical) OR
| bitwise OR
10 left
|| boolean (logical) OR
11 ?: conditional right
12 = assignment right
*= /= += -= %=
combinated assignment
13 <<= >>= >>>= right
(operation and assignment)
&= ^= |=

You might also like