this question has answer here:
i learned lesson of java exception handling
. , learned java finally
block executed whether exception handled or not.
finally block
is there case when not executed?
finally block
not executed if program exits; either calling system.exit()
or causing fatal error causes process abort.
more information - https://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html