Explain a situation where finally block will not be executed in Java?

A situation where finally block will not be executed in Java-

Finally block will not be executed whenever jvm shutdowns.

If we use system.exit(0) in try statement
finally block if present will not be executed.


Posted

in

Tags:

Comments

Leave a Reply