Programmers frequently make errors regarding the precedence of operators because of the unintuitive low-precedence levels of {{ Wiki Markup &
}}, {{\|
}}, {{\^
}}, {{<<
}}, and {{>>
}}. Avoid mistakes regarding precedence through the suitable use of parentheses. This also improves code readability unless taken to excess. The precedence of operations by the order of the subclauses are defined in the Java Tutorials \ [[Tutorials 2008|AA. References#Tutorials 08]\].
Although it advises against depending on parentheses for specifying evaluation order, EXP08-J. Do not write more than once to the same variable within an expression applies only to expressions that contain side effects.
...
C++ Secure Coding Standard: EXP00-CPP. Use parentheses for precedence of operation
Bibliography
...
[[ESA 2005AA. References#ESA 05]] | Rule 65: Use parentheses to explicitly indicate the order of execution of numerical operators | ]]></ac:plain-text-body></ac:structured-macro> | <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d39c28c8-e41c-447f-9afe-a53226bba1a6"><ac:plain-text-body><![CDATA[ |
[[Tutorials 2008AA. References#Tutorials 08] ] | http://java.sun.com/docs/books/tutorial/java/nutsandbolts/expressions.html] | ]]></ac:plain-text-body></ac:structured-macro> | |
| Operators<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6cf039b4-0198-4e2e-a4a3-b1b449adffa9"><ac:plain-text-body><![CDATA[ | ||
[[Rogue 2000AA. References#Rogue 2000]] | Rule 77: Clarify the order of operations with parentheses]]></ac:plain-text-body></ac:structured-macro> |
...
EXP51-J. Do not perform assignments in conditional statements 02. Expressions (EXP)