Hi
What is the difference between Garbage Collection and Dispose Method ?
Garbage Collection and Dispose Method
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted May 28, 2012, 9:51 AM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted May 28, 2012, 9:16 AM EDT
If you want to delete resources(objects) those are not using you should not worry about that garbage collecter implicitly call finalize() method and remove all such object but if you want to delete object forcefully(The larger object you want to delete after completing task) than you can explicitly call dispose() method.
Thanks