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 |
Difference between JDK, JRE, JVM
16 Answers Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,
What is an empty list in java?
Why is java called the platform independent programming language?
How can we find the sum of two linked lists using stack in java?
Describe different states of a thread.
What is a qms manual?
What is compareto?
different types of threads?
Is math an abstract class in java?
Hi Friends, can u give code to convert ArrayList to HashMap and HashMap to ArrayList.
What is difference between iterator access and index access?
Can constructor return value?