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 |
Define locale.
What is java thread dump, how can we get java thread dump of a program?
What are the various access specifiers for java classes?
Can a static member function access member variable of an object?
When should I use stringbuffer?
What is the difference between menuitem and checkboxmenu item?
relation between list and linked list
what is difference Between Core Java and advance java
60 Answers HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,
what is the Yield() method used in threads?
How many decimal digits is 64 bit?
What is native code?
How to sort the elements in HashMap