Examveda

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

A. To define exception classes

B. To handle specific types of exceptions

C. To catch exceptions

D. To execute code that must always run, whether or not an exception occurs

Answer: Option D


Join The Discussion

Related Questions on Exception Handling in C Sharp