Question

What is the purpose of the finally block in exception handling?

A It is executed when an exception occurs.
B It is used to handle the exception.
C It is executed regardless of whether an exception occurs or not.
D It is used to re-throw the exception.
Practice Next

Relevant for Exams:

Hey! Ask a query