title: A loop with an empty body in Java
body: <p>During bug fixing in very old project I've faced with strange method, it looks like this:</p>
  
  <pre><code>   void waiter() {
          for (int i = 0; i &lt; 20000; i++) ;
      }
  </code></pre>
  
  <p>Does it cause halting some time or it will be omitted by JVM optimization?</p>