title: What is wrong with this java for loop condition?
body: <p>1.</p>
  
  <pre><code>for (int i = 0; (boolean)true; i++) { 
  
  }
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>for (int i = 0; (boolean)false; i++) {
  
  }
  </code></pre>
  
  <p>3.</p>
  
  <pre><code>boolean t=false;
  for (int i = 0; t; i++) {
  
  }
  </code></pre>
  
  <p>The first for loop <em>compiles</em> &amp; <em>runs</em>, but the second for loop <code>compilation fails with error</code>.  It says <code>Unreachable Statement</code>. And the third for loop <em>compiles</em> &amp; <em>runs</em>.</p>