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 the Scope of Static Variable?
How to restrict a member of a class from inheriting by its sub classes?
How to pass arraylist to stored procedure in java?
What is the order of arraylist in java?
What are the states of thread in java?
If a method is declared as protected, where may the method be accessed in java programming?
Can we execute java program without main method?
What is the default size of load factor in hashing based collection?
Is minecraft 1.15 out?
Can a class extend more than one class?
Can java cast null?
Why volatile is used in java?
Can a class be private or protected in java?
How to perform bubble sort in java?
What data type is true or false?