title: java question about try catch statement with finally
body: <p>Here is a code written by java.</p>
  <pre><code>public class work2{
  public static void main(String args[]) {
      try {
          int x = 0;
          for (x=1; x&lt;4; x++); 
          System.out.println(x);
      } catch(Exception e) {}
      finally {
          System.out.println(&quot;Error&quot;);
      }
  }
  </code></pre>
  <p>}</p>
  <p>And the output is</p>
  <blockquote>
  <p>4 Error</p>
  </blockquote>
  <p>Would you explain why the output is looks like this?</p>