Prerequisites: You will need a basic understanding of the Java call stack.

An exception is simply an abnormality of the code which disrupts the normal flow of execution of the program at runtime.

Normally if you don’t handle exceptions in a program, if the program finds an abnormality at runtime, it will completely stop the execution of the rest of the code. In a large-scale program, this will no be the ideal situation. Therefore, we need to handle these exceptions so that the rest of the code can execute without any interruptions even when there is an exception. …

Nipuni Yapa Rupasinghe

Software Engineering undergraduate @University of Colombo School of Computing (UCSC)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store