title: For loop with no parameters in Java
body: <p>I am looking at somebody else's code and I found this piece of code:</p>
  
  <pre><code>for (;;) {
  </code></pre>
  
  <p>I'm not a Java expert; what is this line of code doing?</p>
  
  <p>At first, I thought it would be creating an infinite loop, but in the very SAME class this programmer uses </p>
  
  <pre><code>while(true)
  </code></pre>
  
  <p>Which (correct me if I'm wrong) IS an infinite loop. Are these two identical? Why would somebody change their method to repeat the same process?</p>
  
  <p>Any insight would help,</p>
  
  <p>Thanks!</p>