Question

What is the role of the catch block in exception handling?

A It is executed regardless of whether an exception occurs or not.
B It is used to re-throw the exception.
C It is executed when an exception occurs and matches the specified type.
D It is used to define the exception to be thrown.
Practice Next

Relevant for Exams:

Hey! Ask a query