Vidyalelo
C# Programming · Q12

Exception Handling in C Sharp

Programming · C# Programming · question 12

Q12

In C#, what is the purpose of the try block in exception handling?

A.
To catch an exception
B.
To execute code that must always run
C.
To clean up resources
D.
To enclose the code that might throw an exception
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board