title: What happens to the Java stack when a StackOverflowError is thrown?
body: <p>Is the stack emptied in Java when a <code>StackOverflowError</code> is thrown? </p>
  
  <p>In other words, what happens to the stack if I write the following recursion:</p>
  
  <pre><code>public void Test()
  {
      System.out.println("TEST");
      try
      {
          Test();
      }
      catch(StackOverflowError e)
      {
          Test();
      }
  }
  </code></pre>