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 |
Is singleton a bad practice?
Why is method overloading not possible by changing the return type in java?
What is the use of 'super' keyword inside a constructor?
0 Answers Flextronics, Thomson Reuters, Virtusa,
How many types of operators are there?
What is qms certification?
What is class and object in java?
Can an interface have a class?
Does java runtime require a license?
What is array list in java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
Does constructor creates the object ?
What is the final field modifier?