Question:Why should you close and dispose of resources in a finally block instead of a catch block? - VB.NET 

A It keeps you from having to repeat the operation in each catch. 

B A finally block runs whether or not an exception occurs. 

C The compiler throws an error if resources are not disposed of in the finally block. 

D You cannot dispose of resources in a catch block. 

+ Answer
+ Report
Total Preview: 2702

Copyright © 2024. Powered by Intellect Software Ltd