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 default constraint?
how would you implement a thread pool? : Java thread
How are destructors defined in java?
What class of exceptions are generated by the java run-time system?
Is java a virus?
Why do we declare a class static?
What is lastindexof in java?
Why does java not allow multiple public classes in a java file ?
Why are generics used?
What is the difference between hashmap and hashtable in java?
What is boolean false?
How do you read a char in java?
What is a bufferedreader?
Difference between this() and super() in java ?
Can we override static methods in java?