5 What is Java exception handling?

Answer Posted / hr@tgksolutions.com

In Java, exceptions are objects. When you throw an exception, you throw an object. However, you can’t throw just any object as an exception — only those objects whose classes descend from throwable. Throwable serves as the base class for an entire family of classes, declared in java.lang, that your program can instantiate and throw.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a local class in java?

787


What is split return?

689


Does importing a package imports its sub-packages as well in java?

752


what do you understand by the term string with respect to java?

774


What is a parameter in a function?

740


What is private static in java?

794


What are jee technologies?

760


What is OOP's Terms with explanation?

864


Write a program to check for a prime number in java?

782


How do you test a method for an exception using junit?

796


What is the meaning of variable in research?

770


Why destructor is not used in java?

739


What is integer valueof?

858


How do you use compareto?

713


Why set is used in java?

769