How does a try statement determine which catch clause
should be used to handle an exception?
Answers were Sorted based on User's Feedback
Answer / guest
when an exception is thrown with in the body of the try
statement then the catch clauses of the try statement are
examined in the order in which they appear.The first catch
clause that is capable of handling the exception is caught
and the remaining are ignored.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / vatti
when an exception is thrown from the try block,the type of
exception object specified in the catch statement matches
with the exception thrown, that one will execute
| Is This Answer Correct ? | 5 Yes | 1 No |
What do you mean by light weight and heavy weight components?
What's the purpose of static methods and static variables?
Why declare Main() inside the class in java ?
What is a loop java?
how many design pattern r there? and wht design pattern u use and why ?
Why is the type for real numbers called double?
Is java an open source?
What is a treemap in java?
Is simpledateformat safe to use in the multithreaded program?
What is the maximum size of array in java?
Why object class is super class for every class in java?
What are examples of modifiers?