Tutorialspoint examples

Learn java tutorial with examples for beginners online

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.

Related Topics:

Some important terms for Exception Handling.
Exception handling in java.
try and catch blocks in java with example.
Multiple catch blocks in java with example.
Nested try block in java with example.
Finally in java with example.
throw in java with example.
throws in java with example.
Exception propagation in java with example.
Exception handling with method overriding in java.
Custom exception in java with example.
Commonly used exception methods of Throwable class in java.


Download tutorialspointexamples Android App
Copyright © 2018 Tutorialspoint examples DMCA.com Protection Status