title: Java - parentheses and assignment
body: <p>The code:</p>
  
  <pre><code>int r=1;
  System.out.println(r + (r=2));
  </code></pre>
  
  <p>The output is: 3. But I expected 4 because I thought the code inside the parentheses is executed first?</p>