Throwable class implements Serializable interface for interoperability.
In this section, we will learn how exceptions are handled in java.
Java being an object oriented programming language, whenever an error occurs while executing a statement, creates an exception object and then the normal flow of the program halts and JRE tries to find someone that can handle the raised exception.
We use specific keywords in java program to create an exception handler block, we will look into these keywords next.
Java provides specific keywords for exception handling purposes, we will look after them first and then we will write a simple program showing how to use them for exception handling. File Not Found Exception: Negative Integer -5 at com.journaldev.exceptions.
Java provides a robust and object oriented way to handle exception scenarios, known as Java Exception Handling.