Why should you close and dispose of resources in a Finally block instead of a Catch block?

 Posted by Raja on 9/20/2008 | Category: C# Interview questions | Views: 28672
Select from following answers:
  1. It keeps you from having to repeat the operation in each Catch.
  2. Finally blocks run whether or not an exception occurs.
  3. The compiler throws an error if resources are not disposed of in the Finally
  4. You cannot dispose of resources in a Catch block.
  5. All Above

Show Correct Answer

Source: MCTS Book | Asked In: MCTS | Alert Moderator 

Comments or Responses

Login to post response