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


Please Help Members By Posting Answers For Below Questions

What is the use of list in c#?

461


In how many ways you can overload a method?

582


What is the difference between dll and lib?

470


What is the difference between protected and private?

457


What is unsigned int?

519






Explain the OOPS concept in C#?

574


What is jagged array?

536


What does the parsefloat function do?

482


What does console mean c#?

487


Distinguish between finally and finalize blocks?

505


What does the keyword “virtual” declare for a method or property?

522


What is the real use of interface in c#?

458


How many types of variables are there in c#?

521


Explain how can you clean up objects holding resources from within the code?

465


What is the benefit of interface in c#?

469