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 are the two main uses of volatile in Java?
What is difference between add() and addelement() in vector?
Why string is immutable with example?
What is an empty class? What functionality does it offer in Java?
Give few difference between constructor and method?
How big is a 64 bit float?
What is generics in java interview questions?
What is the static block?
What is a condition in programming?
Can we define a package statement after the import statement in java?
What is the largest long allowed by java?
What are java threads?
How do you declare an array in java?
Which is the best sorting technique in java?
What is an exception? difference between Checked and Unchecked exception in Java