What will happen if catch block or finally block having some exception?
exception, java
Solution
Finally block exception will mask the original exception.
When an new exception is thrown in a catch block or finally block that will propagate out of that block, then the current exception will be aborted (and forgotten) as the new exception is propagates outward.
Check here and here for more details
Problem
In exception handling, what will happen if catch block or finally block having Exception?