Operators on the same line have the same precedence:
| Operator Precedence Group | Associativity | Operator Precedence | ||||||||||||||
| (), [], postfix ++, postfix -- | left | Highest | ||||||||||||||
| unary +, unary -, prefix ++, prefix --, ~, ! | right | |||||||||||||||
| (type), new | left | |||||||||||||||
| *, /, % | left | |||||||||||||||
| +, - | left | |||||||||||||||
| <<, >>, >>> | left | |||||||||||||||
| < ,<= , >, >=, instanceof | ||||||||||||||||
| ==, != | ||||||||||||||||
| & | left | |||||||||||||||
| ^ | left | |||||||||||||||
| | | left | |||||||||||||||
| && | left | |||||||||||||||
| || | left | |||||||||||||||
| ?: | left | |||||||||||||||
| =, +=, -=, *=, /=, %=, <<=, >>=, >>>=, &=, |=, ^= | right | lowest |
No comments:
Post a Comment