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 |
Explain about join() method?
Is it possible for yielded thread to get chance for its execution again ?
Define Multiprogramming and Multiprocessing in java.
0 Answers Akamai Technologies,
Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time
What are the common problems you have faced while implementing Java?
Is string a keyword in java?
what are abstract functions?
What is java in layman terms?
Explain about exception propagation?
What is design pattern and there types?
Which one of the following suits the description of a string better: derived or primitive?
Can we split string with in java?