Note that there are some explanatory texts on larger screens.

plurals
  1. POJava operator precedence guidelines
    primarykey
    data
    text
    <p>Misunderstanding <strong>Java operator precedence</strong> is a source of frequently asked questions and subtle errors. I was intrigued to learn that even the <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.7" rel="nofollow noreferrer"><em>Java Language Specification</em></a> says, "It is recommended that code not rely crucially on this specification." <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.7" rel="nofollow noreferrer">JLS §15.7</a> Preferring <em>clear</em> to <em>clever</em>, are there any useful guidelines in this area?</p> <p>Here are a number of resources on the topic:</p> <ul> <li><a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.12" rel="nofollow noreferrer">JLS Operators</a></li> <li><a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.7" rel="nofollow noreferrer">JLS Precedence</a></li> <li><a href="http://mindprod.com/jgloss/precedence.html" rel="nofollow noreferrer">Java Glossary</a></li> <li><a href="http://www.cs.princeton.edu/introcs/11precedence/" rel="nofollow noreferrer">Princeton</a></li> <li><a href="http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html" rel="nofollow noreferrer">Oracle Tutorial</a></li> <li><a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-5.html" rel="nofollow noreferrer">Conversions and Promotions</a></li> <li><a href="http://java.operator-precedence.com/" rel="nofollow noreferrer">Java Operator Precedence</a></li> <li><a href="https://stackoverflow.com/q/6800590/230513">Evaluation Order and Precedence</a></li> <li><a href="http://groups.google.com/group/comp.lang.java.programmer/browse_frm/thread/53e1b79100e7dd01" rel="nofollow noreferrer">Usenet discussion</a></li> </ul> <p>Additions or corrections welcome.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload