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 |
did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???
How many types of design patterns are there?
Write a program to print the pattern given below
What is an argument java?
Do we have pointers in java?
When do we need to use internal iteration? When do we need to use external iteration?
What are parsers? Dom vs sax parser.
Which programming language is most secure?
What is tostring () method?
What does += mean coding?
explain the clone method and clonable interface
Explain JSP life cycle