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 accessor?
What is the default value of local and global variables?
Write a program to find maximum and minimum number in array?
How do you add an element to a hashset in java?
Is empty list java?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
What is a JAR file?
String class is defined under which package in java?
How are destructors defined in java?
Which is bigger double or float?
when you will synchronize a piece of your code? : Java thread
What is passing by reference in java?
What is java’s garbage collected heap?
What are actual parameters?
Can we declare an array without size in java?