1.7 Operators
Introduction
Operators combine values into new values. Java groups them into arithmetic (`+ - * / %`), relational (`== != < > <= >=`), logical (`&& || !`), and unary (`++ -- + - !`) categories, each with well-defined precedence and associativity rules that determine evaluation order in a compound expression.
Key Concepts
Java Syntax
Code Examples
`a / b` performs integer division since both operands are `int`. `a % b` computes the remainder. The logical expression evaluates both relational comparisons and combines them with `&&`.