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 |
Does any tag exists in HTML to upload and download files ?
java Technical questions asked by JPMC
What are the legal operands of the instanceof operator?
How can you set the applet size?
Does sprintf allocate memory?
What is meant by flickering?
What is a concrete classes? Is Java object class is concrete class?
which class to use when concatenating strings in a loop.
Does list maintain insertion order java?
what are variables in java
How to check if a list is sorted in java?
What is constructor in java ?