Working of pre-fix increment in Java
<p>What is the control flow of post-increment operator?</p>

<pre><code>public class PostIncrement
{
    public static void main(String[] args)
    {

        int a = 0;
        for(int i=0;i&lt; 2 ;i++)
        {
            a =a++;     
        }

        for(int i=0 ;i&lt; 1;i++)
        {
            a++;
        }

        System.out.println("Result2 :"+" "+a);        
    }

}
</code></pre>

<p>The results are like 0 and 1</p>

<p>Why is it so?</p>
