How does a try statement determine which catch clause
should be used to handle an exception?
Answer Posted / 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 |
Post New Answer View All Answers
What is a singleton class in Java?
If you are given the name of the function at run time how will you invoke the function?
What are invisible components?.
Explain try and catch keywords in java?
Can we serialize static variables in java?
Can a class be defined inside an interface?
What is sorting in java?
Explain the term virtual machine?
Explain about transient variables in java?
What is the method in java?
How objects are stored in java?
What does %d do in java?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What is a class in java?
What is the use of using enum to declare a constant?