Answer Posted / nashiinformaticssolutions
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 an off by one error in java?
Can we define private and protected modifiers for variables in interfaces?
Name and explain the types of ways which are used to pass arguments in any function in java.
What is singleton pattern?
How does finally block differ from finalize() method?
What is a variable analysis?
What is the difference between class & object?
What are the 3 types of control structures?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
Can a final variable be initialized in constructor?
Is string a wrapper class?
Are arrays immutable in java?
Why can't we make a class private in java?
What is a java list?