precedenceA characteristic of operators that indicates when they will be evaluated when they appear in complex expressions. Operators with high precedence are evaluated before operators with low precedence. For example, the multiplication operator (*) has higher preference than the addition operator (+), so the expression
equals 14, not 20.
You can override precedence rules by surrounding parts of an expression with parentheses. For example,
would evaluate to 20.