Exception Propagation in Java
In this article, we will explain the propagation of the exceptions following some basic examples for good learning.
Exception
An “exception” is an event that occurs during the execution of a program that disrupts the normal flow of the program. When this error occurs within a method then an object is created and is handed off to the runtime system. The object created is called an “exception object” that contains the information about the error, its type and state of the program when the error occurred. The process of creating an object and handing it to the runtime system is known as “throwing" the exception.
Exception Propagation
When the exception occurs and is thrown to the runtime system, it is first thrown from the top of the stack to be caught and if not caught then it drops down the call stack to the previous method and if again it is not caught then it drops down to the previous methods and so on. This process will go until they are caught or until they reach the bottom of the call stack. This is done using the call stack in which methods calls propagate in series. This process can be shown by the following figure.
- Method C <------ Exception Occurred here
- Method B
- Method A <------ Exception Handler Written Here
- main()
- Checked Exception
- Unchecked Exception

Gowtham RajamanickamPosted May 19, 2015, 12:50 AM
good one
Gopi ChandPosted Apr 20, 2014, 12:39 PM
Thank you sir..! I always mention "Java" in my every Java topic so that publisher publish the article at right section.It all depends on the guy who publish the content, what can i do sir.If you have way to guide me then please help me.Thanks.
Mahesh ChandPosted Apr 20, 2014, 11:46 AM
Welcome to C# Corner Gopi. I think this article should be posted in Java section. Thanks!