If I've got a main functions that throws some a generic exception, who catches it?
FileInputStream throws a FileNotFoundException but the program doesn't complain because main declares that it throws Exception. Of course, if I remove "throws Exception" then it says I need to catch the FileNotFoundException.
So if main throws the Exception, where is it being caught?
FileInputStream throws a FileNotFoundException but the program doesn't complain because main declares that it throws Exception. Of course, if I remove "throws Exception" then it says I need to catch the FileNotFoundException.
So if main throws the Exception, where is it being caught?