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


Please Help Members By Posting Answers For Below Questions

Why java does not support pointers?

756


What is method overloading in java ?

740


Why is core java important?

764


What are loops in java?

770


What is the difference between final, finally and finalize()?

755


What does it mean to be immutable?

739


Can a static class have a constructor java?

712


Define max and min heap, also the search time of heap.

800


what is session in java?

964


What is a parameter in java?

714


What is the purpose of the system class in java programming?

733


What is difference between iterator and enumeration in java?

719


How can you add and remove nodes in jtree?

788


What is mysql driver class name?

786


Why call by value prevents parameter value change?

791