Exception Handling in Java


 

Exception Handling in Java

In this section of SCJP you will see about exception handling.

In this section of SCJP you will see about exception handling.

Exception, that means exceptional errors. Actually exceptions are used for handling errors in programs that occurs during the program execution. During the program execution if any error occurs and you want to print your own message or the system message about the error then you write the part of the program which generate the error in the try{} block and catch the errors using catch() block. Exception turns the direction of normal flow of the program control and send to the related catch() block. Error that occurs during the program execution generate a specific object which has the information about the errors occurred in the program.

For more details about exception handling click on the following links

Exception Handling in Java

Example to show exception handling in java

User Defined Exception

List of Java Exception

Unhandled Exception

Show ArrayoutofboundException in java

Show Hash table exception in java

Show clone exception in java

Show Collection exception in java

Create exception object in java

Show ArraylistException in Java

Show Iterator exception in java

Ads