Java   View all facts   Glossary   Help
principle > rule > order of operator precedence
Next ruleisa rule    Uprule

order of operator precedence comparison table
Subject is a kind of be is a subtopic of
ruleprinciple  
order of operator precedenceruleOperators at the top take precedence over operators lower in the table. At the same level of the table, operators are evaluated from left to right.
operatorscomments
() []Anything in parentheses, including array indexing, is evaluated first
++ -- !Unary operators
* / %Multiplicative operators
+ -Additive binary operators
> >= < <=Relational comparison operators
== !=Identity comparison operators
&&Logical AND
\Logical OR
?:Ternary if-then-else
= += *= -= /=Assignment
Operators

Next ruleisa rule    Uprule