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.


  • 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!


In this Discussion