Vidyalelo
C# Programming · Q7

Exception Handling in C Sharp

Programming · C# Programming · question 7

Q7

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

Answer: Option D

Solution

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