title: Difference Between i = i+1 & i++
body: <p>Can anyone solve my confusion here is my code :   </p>
  
  <pre><code>byte i = 0;
  
  i++;
  System.out.println(i);
  </code></pre>
  
  <p>Result: <strong><em>1</em></strong></p>
  
  <pre><code>byte i = 0;
  
  i = i+1;
  System.out.println(i);
  </code></pre>
  
  <p>Generate compile time error: <strong><em>Type mismatch: cannot convert from int to byte</em></strong></p>
  
  <p>When I convert that to byte like:   <strong><em><code>i = (byte) (i+1);</code></em></strong> then happily getting result <strong><em>1</em></strong></p>
  
  <p>Performing this example i am understand i = i+1 &amp; i++ perform can't same opearation so now i want to know what is exactally difference between them ...!!!</p>