When is the finally clause of a try-catch-finally statement executed?

Q

When is the finally clause of a try-catch-finally statement executed?

✍: Guest

A

The finally clause of the try-catch-finally statement is always executed unless the thread of execution terminates or an exception occurs within the execution of the finally clause.

2012-12-17, 2009👍, 0💬