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 is a nested class?
How to display all the prime numbers between 1 and 100
What is the use of put method?
What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?
Difference between this() and super() ?
different types of threads?
What are the important features of Java 11 release?
What is thread start?
What are the different http methods?
Can a abstract class be declared final?
Why char array is preferred over string for storing password?
In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ?????