title: In Java, when exactly does the post-increment operation occur?
body: <p>I'm looking at this Java code:</p>
  
  <pre><code>        while (n-- != 0) {
              if (searchMe.charAt(j++) != substring.charAt(k++)) {
                  continue test;
              }
          }
  </code></pre>
  
  <p>I am confused about when, exactly, the <code>n--</code> operation takes place. Is it after the <code>if</code> statement?</p>