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
How do you make an arraylist empty in java?
What is a predicate method?
Why do we need singleton?
What is an example of a boolean?
Does java initialize arrays to zero?
What are the disadvantages of using inner classes?
Are global variables initialized to zero?
How do you check if two given string are anagrams?
What are the advantages of encapsulation in java?
What is import java util arraylist?
what is meant by HQL?
What is linkedlist in java?
What is contract between hashcode and equal method?
Can java run on google chrome?
Which containers use a flowlayout as their default layout in java programming?