Operator Precedence
The following table shows the order of precedence for Java operators, from highest to lowest.
- () [] . (Highest)
- ++ - - ~ !
- * / %
- + -
- > >>> << ]]>
- >= < <= ]]>
- == !=
- ^
- |
- ||
- ?:
- = op= (Lowest)
The following table shows the order of precedence for Java operators, from highest to lowest.