title: Does AND take precedence over OR?
body: <p>Quick question.  In Java, do AND's take precedence over OR's?  For example, how is this code interpreted?</p>
  
  <pre><code>if(statement1 &amp;&amp; statement2 || statement3)
  </code></pre>
  
  <p>Which is this the same as?</p>
  
  <pre><code>if(statement1 &amp;&amp; (statement2 || statement3))
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if((statement1 &amp;&amp; statement2) || statement3)
  </code></pre>
  
  <p>Thanks in advance.</p>