Operators Precedence
When an expression contains two or more operators, normal operator precedence rules are applied to determine the order of evaluation. If two operators have different levels of precedence, the operator with the highest precedence is evaluated first.
For example, multiplication is of higher precedence than addition, so the expression 2+3*4 is evaluated as:
You can explicitly control the evaluation order using parentheses. For example, (2+3)*4 is evaluated as:
Operators are presented in groups from highest to lowest precedence.
See About Operators.