Question
Which of the following are true about the finally clause of a try-catch-finally statement?
- A. It is only executed after a catch clause has executed.
- B. It is only executed if a catch clause has not executed.
- C. It is always executed unless its thread terminates.
- D. It is only executed if an exception is thrown.
C.
Note
The finally clause of a try-catch statement always executes unless its thread terminates.
PreviousNextRelated