title: In Java, how does a post increment operator act in a return statement?
body: <p>Given the following code, will ixAdd do what you'd expect, i. e. return the value of ix before the increment, but increment the class member before leaving the function?</p>
  
  <pre><code>class myCounter {
      private int _ix = 1;
  
      public int ixAdd()
      {
          return _ix++;
      }
  }
  </code></pre>
  
  <p>I wasn't quite sure if the usual rules for post / pre increment would also apply in return statements, when the program leaves the stack frame (or whatever it is in Java) of the function.</p>