Examveda

In C#, what is the role of the 'finally' block in a try-catch-finally statement?

A. Catches any exceptions

B. Handles exceptions

C. Executes code regardless of whether an exception occurs or not

D. Terminates the program

Answer: Option C


This Question Belongs to C Sharp Programming >> Introduction To C Sharp

Join The Discussion

Related Questions on Introduction to C Sharp