Arithmetic, relational, logical, assignment, increment and decrement operators, the ternary operator, precedence and associativity.
In this chapter
- Operators, operands and expressions: unary, binary and ternary forms
- Arithmetic operators, integer division and %
- Increment and decrement: prefix vs postfix
- Relational and logical operators, with truth tables and short-circuiting
- Assignment, shorthand operators, counters and accumulators
- The ternary operator, new and dot, and print vs println
- Precedence and associativity of operators