How the exceptions are handled in java?
Java has it’s own mechanism to handle the exceptions. In Java, exceptions are handled using three blocks – try, catch and finally blocks.
try block
The code to be monitored for exceptions will be kept in this block.
catch block
If any exceptions occurred in try block, those exceptions will be caught by this block.
finally block
This block will be always executed whether exception is raised or not and raised exceptions are caught or not.
Complete Exceptions in Java
https://javaconceptoftheday.com/java-exception-handling-interview-questions-and-answers/