DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions