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
What is data adapter in c#?
Can an exception be thrown from a catch block?
Name the property of the textbox which cannot be changed at runtime?
How many types of constructors are there in c#?
What is the difference between ref and out in c#?
What are callback methods in c#?
What is predicate c#?
Can I define a type that is an alias of another type (like typedef in c++)?
What is a factory in c#?
What is different about switch statements in c#?
Are string objects mutable or immutable?
What does console mean c#?
How many types of methods are there in c#?
Why is hashset faster?
Explain circular reference in c#?