📄️ Try-Catch Statement
What is an Exception?
📄️ Finally block
The Purpose of the Finally Block:
📄️ Exception propagation
Exception propagation occurs when an exception is thrown in a method but is not caught within that method. Instead, the exception is propagated up the call stack to higher-level methods until it encounters a catch block that can handle it or until it reaches the top-level of the program, resulting in termination.
📄️ Custom exceptions
A custom exception is a user-defined exception that extends the functionality of the built-in Exception class in Java. By creating custom exceptions, you can tailor error handling to specific situations in your application, making your code more modular and readable.