How does a try statement determine which catch clause
should be used to handle an exception?
Answer Posted / 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 |
Post New Answer View All Answers
What is a pattern what is an anti pattern?
What are different types of arrays?
What happens when you add a double value to a string?
How does regex work?
Explain about automatic type conversion in java?
What does int argc char * argv [] mean?
What is default switch case? Give example.
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is the implementation of destroy method in java. Is it native or java code?
What if I write static public void instead of public static void in java?
What is ++ a in java?
Who is the owner of java?
What is the difference between method and means?
What is hashmap in java?
Can we increase size of array?