Advantages Of Exception Handling in java
Exception handling is a powerful mechanism to handle run time
errors. Exception Handling allows us to control normal flow of the program
by using Exception handling in program.
Advantages:-
1. It throws an exception whenever a calling method
encounters an error providing that the calling method takes care of that error.
2. Separating error handing code from “regular” code.
3. Propagating error up the call Stack.
4. Grouping error types and error differentiation.
5. This is done with the help of try-catch blocks.
Post a Comment