title: Java boolean |= operator
body: <p>Recently I saw a code using this:</p>
  
  <pre><code>boolean val = something();
  val |= somethingElse();
  </code></pre>
  
  <p>Interesting part is |= (binary like) operator made on boolean primitive type.</p>
  
  <p>It surprised me that |= exist for boolean, as if it was integer type, and searched Java specification for this operator, but could not find any.</p>
  
  <p>I'd be curious if right operand is evaluated if left value already is true.</p>
  
  <p>Can someone point me to Java specification of this?</p>