How does a try statement determine which catch clause should be used to handle an exception?

How does a try statement determine which catch clause should be used to handle an exception?

When an exception is thrown within the try block the JVM start searching from the first catch block associated with the try block, the first matching catch block is executed and rest are ignored.

By:Jalees
Date:2015-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher