what is the difference between finally and dispose methods?
Answer Posted / m.m.ganesh
compulsory finally will execute after try and catch
block.Dispose method is used to clean up the
objects.Dispose methos will call in finally method to clean
up the objects
Is This Answer Correct ? | 6 Yes | 19 No |
Post New Answer View All Answers
What is the use of list in c#?
In how many ways you can overload a method?
What is the difference between dll and lib?
What is the difference between protected and private?
What is unsigned int?
Explain the OOPS concept in C#?
What is jagged array?
What does the parsefloat function do?
What does console mean c#?
Distinguish between finally and finalize blocks?
What does the keyword “virtual†declare for a method or property?
What is the real use of interface in c#?
How many types of variables are there in c#?
Explain how can you clean up objects holding resources from within the code?
What is the benefit of interface in c#?