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
Explain polymorphism citing an example.
do I need to use synchronized on setvalue(int)? : Java thread
What is runtime polymorphism or dynamic method dispatch?
What is singleton service?
What is difference between hashset and hashmap in java?
Explain the difference between comparator and comparable in java?
Why does java have two ways to create child threads?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What are the escape sequences in java?
what do you mean by stream pipelining in java 8? Explain
Does treeset allow null in java?
What is the purpose of using java.lang.class class?
What is the difference between processes and threads?
Write a program to reverse array in place?
How do you check if a number is a perfect square?