Thursday, March 12, 2009

What happens if a try-catch-finally statement does not have a catch

Question :What happens if a try-catch-finally statement does not have a catch
clause to handle an exception that is thrown within the body of the try
statement? (CoreJava)

Answer :The exception propagates up to the next higher level try-catch statement
(if any) or results in the program's termination

No comments: