Unexpected output in my function
<pre><code>public class Backhand {
    int state = 0;

    Backhand(int s) {
        state = s;
    }

    public static void main(String... hi) {
        Backhand b1 = new Backhand(1);
        Backhand b2 = new Backhand(2);
        System.out.println( b2.go(b2));
    }

    int go(Backhand b) {
        if(this.state ==2) {
            b.state = 5;
            go(this);
        }
        return ++this.state;
    }
}
</code></pre>

<p>When this is run, it outputs 7. I thought  <code>++this.state;</code> should execute just once in method go and the output should be 6. Can someone explain what's happening here?</p>
