title: Difference in implementation of x = x + 1 and x++
body: <p>My professor recently said that although <code>x = x + 1</code> and <code>x++</code> will obviously give the same result, there is a difference in how they are implemented in the JVM. What does it mean? Isn't compiler like: hey, I see <code>x++</code> so I will switch it to <code>x = x + 1</code> and carry on?</p>
  
  <p>I doubt there is any difference when it comes to efficiency, but I would be surprised if assembly would be different in those cases...</p>