DEVFYI - Developer Resource - FYI

What is the purpose of the finally clause of a try-catch-finally statement?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

71. What is the purpose of the finally clause of a try-catch-finally statement?

The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.

(Continued on next question...)

Other Interview Questions