advantages of exception handling in java

Solutions on MaxInterview for advantages of exception handling in java by the best coders in the world

showing results for - "advantages of exception handling in java"
Francesco
28 Mar 2016
11) Separating normal code from exception handling code to avoid abnormal 
2termination of program.
32) Categorizing in to different types of Exceptions so that rather than 
4handling all exceptions with Exception root class we can handle with specific 
5exceptions. It is recommended to handle exceptions with specific Exception 
6instead of handling with Exception root class.
73) Call stack mechanism : If a method throws an exception and it is not handled 
8immediately, then that exception is propagated or thrown to the caller of that 
9method. This propogation continues till it finds an appropriate exception 
10handler,if it finds handler it would be handled otherwise program terminates
11abruptly.