Object Oriented Software Engineering   View all facts   Glossary   Help
subject > criterion > principle > rule > Java order of operator precedence
Next rulelaw of conservation of bugs    Uprule    Previous ruleisa rule   

Java order of operator precedence
subjectfact 
Java order of operator precedenceis a subtopic of The Basics of Java2001-08-30 14:56:17.0
is an instance of rule2001-08-30 14:56:17.0
states that 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
= += *= -= /=/td>Assignment
link: chapter2section2.8.html#701, 2001-08-30 14:56:17.0