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 the use of 'super' keyword inside a constructor?
What is time complexity java?
How to declare objects of a class ?
What java is used for?
Why stringbuilder is not thread safe?
Difference between == and .equals() ?
How do you achieve polymorphism in java?
Is it necessary for the port addresses to be unique? Explain with reason.
What is percentage in java?
Is java map thread safe?
Are true and false keywords?
Can there be an abstract method without an abstract class?
What checkbox method allows you to tell if a checkbox is checked?
How do you insert a line break?
What are the various access specifiers for java classes?