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 comparison table
Subject is an instance of is a kind of state is a subtopic of has definition
rule principle  A principle that should almost always be applied
Java order of operator precedencerule 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
The Basics of Java 

Next rulelaw of conservation of bugs    Uprule    Previous ruleisa rule