title: While loop without a body in Java
body: <p>The body of the <strong>while</strong> (or any other of Java's loops) can be empty. This is because a null statement (one that consists only of a semicolon) is syntactically valid in Java. 
  Now consider this :</p>
  
  <pre><code>i = 100     
  
  j = 200   
  
  while(++i &lt; --j); // no body in this loop  
  
    system.out.println(i);         
  
    system.out.println(j);      
  </code></pre>
  
  <p>I noticed that if the value of i is less than j, then the loop repeats itself and when the condition fails to fulfill, then only the 2 below statements are exceuted. Am i correct or is there any other logic behind this?</p>