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
If a method is declared as protected, where may the method be accessed in java programming?
What does this () mean in constructor chaining concept?
What are the access modifiers available in java?
What is pangram in java?
Can we increase size of array?
What is use of map in java?
What is final access modifier in java?
How to sort double array in java?
What is covariant return type?
What is an infinite loop?
How many types of literals are there in JAVA?
How do you sort an array in java?
Explain 5 io best practices?
Can we serialize static variables in java?
What does substring mean?