title: Does the Java &= operator apply & or &&?
body: <p>Assuming</p>
  
  <pre><code>boolean a = false;
  </code></pre>
  
  <p>I was wondering if doing:</p>
  
  <pre><code>a &amp;= b; 
  </code></pre>
  
  <p>is equivalent to</p>
  
  <pre><code>a = a &amp;&amp; b; //logical AND, a is false hence b is not evaluated.
  </code></pre>
  
  <p>or on the other hand it means</p>
  
  <pre><code>a = a &amp; b; //Bitwise AND. Both a and b are evaluated.
  </code></pre>