The priority of an operator determines the order in which operations in an expression are performed. For example: x<y&&!z is equivalent to (x<y)&&(!z).
The associativity of operators determines the order of parallel operators of the same level. For example: 8-5+3 is equivalent to (8-5)+3.
The precedence and associativity of operators are as follows: