Operator Precedence
Operator Precedence
Operator
.
()
[]
++
-!
~
(type)
*
/
%
+
<<
>>
>>>
<
<=
>
>=
instanceof
==
!=
&
^
|
&&
||
?:
=
op=
Description
Member selection
Function call
Array element reference
Unary minus
Increment
Decrement
Logical negation
Ones complement
Casting
Multiplication
Division
Modulus
Addition
Subtraction
Left shift
Right shift
Right shift with zero fill
Less than
Less than or equal to
Greater than
Greater than or equal to
Type comparison
Equality
Inequality
Bitwise AND
Bitwise XOR
Bitwise OR
Logical AND
Logical OR
Conditional operator
Assignment operator
Shorthand assignment
Associativity
Rank
Left to right
Right to left
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Right to left
Right to left
8
9
10
11
12
13
14