title: Java Compile Time Error: reached end of file while parsing
body: <pre><code>public class Test{
      public static void main(String[] arg){
          System.out.println("Alexander The Great");
      }
  }
  </code></pre>
  
  <p>In this code, if I remove the first quotation mark in the string, I get 3 errors. 
  1. ')' expected
  2. unclosed string literal
  3. not a statement</p>
  
  <p>ok, I understood above errors.</p>
  
  <p>If I remove the second quotation mark in the string, I also get 3 errors.
  1. unclosed string literal
  2. ';' expected
  3. reached end of file while parsing</p>
  
  <p>I understood 1 and 2, but why 3??</p>
  
  <p>Doesn't it usually occur when braces are missing? But clearly, I have correct number of braces. 
  Also, why not the first case give the error "reached end of file while parsing"?</p>
  
  <p>P.S. I'm using jGrasp, java 1.6.</p>