Wiki Markup |
---|
Programmers frequently make errors regarding the precedence of operators because of the unintuitive low-precedence levels of {{&}}, {{\|}}, {{\^}}, {{<<}}, 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. Bibliography#Tutorials 08]\]. |
Although the guideline EXP09EXP08-J. Do not write more than once to the same variable within an expression advises against depending on parentheses for specifying evaluation order, it applies only to expressions that contain side-effects.
...