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