Explain Java Unary operator
<p>Do check this code:</p>

<pre><code>int result = 0;
result = result++;
System.out.println("Result 1 = " + result);
result++;
System.out.println("Result 2 = " + result);
</code></pre>

<p>The output i was expecting was :</p>

<pre><code>Result 1 = 1
Result 2 = 2
</code></pre>

<p>But i got the output:</p>

<pre><code>Result 1 = 0
Result 2 = 1
</code></pre>

<p>The problem lies at Line2. Can some one explain on Unary operator.??</p>
