APPENDIX B
JAVA OPERATOR SUMMARY
The Java operators are listed in groups of decreasing precedence in the table below. The horizontal lines in the table indicate a change in operator precedence. Operators with higher precedence bind more strongly than those with lower precedence. For example, x + y * z means x + (y * z) because the * operator has higher precedence than the + operator. Looking at the table below, you can tell that x && y || z means (x && y) || z because the || operator has lower precedence.
The associativity of an operator indicates whether it groups left to right, or right to left. For example, the - operator binds left to right. Therefore, x - y - z means (x - y) - z. But the = operator binds right to left, and x = y = z means x = (y = z).


Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access