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 difference between double and float variables in java?
How can we create objects if we make the constructor private ?
Do I need java for windows 10?
What does %d do in java?
What is the difference between a loader and a compiler?
Why java does not support pointers?
How will you load a specific locale?
What is java reflection api?
Which class cannot be a subclass in java?
What is equals method in java?
What does it mean to be immutable?
What does it mean that a method or field is “static”?
What java ide should I use?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
What is a native method in java programming?