Java Reference
In-Depth Information
The following table lists all the operators in order of precedence from
highest to lowest. All the operators are binary, except those shown as
unary with
expr
, the creation and cast operators (which are also unary),
and the conditional operator (which is ternary). Operators with the same
precedence appear on the same line of the table:
[] .
(
params
)
expr
++
ex-
pr
--
postfix operators
++
expr
-
-
expr
+
ex-
pr
-
expr
~
!
unary operators
new
(
type
)
expr
creation or cast
multiplicative
* / %
additive
+ -
shift
<< >> >>>
< > >= <=
instanceof
relational