What is Java exception handling?

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


Please Help Members By Posting Answers For Below Questions

What is an accessor?

1310


What is the default value of local and global variables?

822


Write a program to find maximum and minimum number in array?

744


How do you add an element to a hashset in java?

678


Is empty list java?

704


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

2321


What is a JAR file?

782


String class is defined under which package in java?

806


How are destructors defined in java?

779


Which is bigger double or float?

715


when you will synchronize a piece of your code? : Java thread

744


What is passing by reference in java?

748


What is java’s garbage collected heap?

714


What are actual parameters?

718


Can we declare an array without size in java?

704