Some important terms for exception handling
Exception refers to an exceptional event. Exception is an event that disrupts the normal flow of the program, during program execution.
When an error occurs within a method, the method creates an object and hands it to the runtime system. This object is known as exception object. It contains the information of the error.
Throwing an exception:
It is a process of handing an exception object to the runtime system.
Catch the exception:
It is a process of finding something which can handle exception object.
It is a block of code that can handle the exception is known as exception handler.
Next Topic: Exception handling in java.
Previous Topic: StringTokenizer in java.