Examveda

What is the purpose of the try-catch block in C#?

A. To handle exceptions that may occur in a block of code

B. To throw exceptions

C. To declare custom exceptions

D. To clean up resources in case of an exception

Answer: Option A


Join The Discussion

Related Questions on Exception Handling in C Sharp