Precedence rules

The precedence of the main operators in Java

Purpose of operator Operator
multiplicative * /
additive + –
relational < > <= >=
equality == !=
logical AND &&
logical OR ||
assignment =