what is the difference between finally and dispose methods?
Answer Posted / sunil
finally will execute after the try block. It must execute
if there is any exception caught in the catch blobk or not.
Dispose method is the last method executed in the c# program
| Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
When should I throw an exception?
how to prevent a class from being inherited in c#.net?
How do you name a variable in c#?
What's the difference between an integer and int?
Can we make a class private in c#?
What is console programming language?
What is parameter c#?
Can derived classes have greater accessibility than their base types?
What are the characteristics of c#?
What does type safety mean?
Explain how is the dll hell problem solved in .net?
Explain the difference between object type and dynamic type variables in c#?
What is the use of tuple in c#?
Explain the process of Serialization?
What is a partial class in c#?