Is there an occasion where "finally" clause is not executed in Java?

I want to know whether the finally block in a try catch statement is executed always or whether there is a particular scenario which it is not executed.

Comments

  • finally is always called unless if you call System.exit()or if the JVM crashes first.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion