What calls main? Java calls main.
C:\>java myfile
... exceptions are output here.
You could write your own exception handler if you wish. Lazy
programmers tend to throw everything.
It is always better to catch the error for your own benefit.
public foo() {
try {}
catch(Exception e)
{
e.printStackTrace();
}
}
It even tells you the line number of the error! How cool is that?