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
What is a local class in java?
What is split return?
Does importing a package imports its sub-packages as well in java?
what do you understand by the term string with respect to java?
What is a parameter in a function?
What is private static in java?
What are jee technologies?
What is OOP's Terms with explanation?
Write a program to check for a prime number in java?
How do you test a method for an exception using junit?
What is the meaning of variable in research?
Why destructor is not used in java?
What is integer valueof?
How do you use compareto?
Why set is used in java?