Operators are evaluated in the following order:
- Parenthetical expression (innermost first)
- Unary positive, unary negative, ~, !
- <<, >>
- &, |, ^
- Multiplication, division, modulus
- Addition, subtraction
- <, <=, >, >=, ==, !=
- &&, ||
Operators with the same precedence are evaluated left to right.