What Can Prevent The Execution of The Code in Finally Block ? And What Are The Rules For Catching Multiple Exceptions?

The death of thread

– Use of system.exit()

– Turning off the power to CPU

– An exception arising in the finally block itself

Rules for catching multiple exceptions

– A more specific catch block must precede a more general one in the source, else it

gives compilation error

– Only one catch block, that is first applicable one, will be executed