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

order of operator precedence
subjectfact 
order of operator precedenceis Operators 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
  
source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:37.0
is a subtopic of Operators2001-10-19 11:37:37.0
is a kind of rulesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:37.0