Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the Difference B/W Finalize() and Dispose() in .Net?

Answers were Sorted based on User's Feedback



What is the Difference B/W Finalize() and Dispose() in .Net?..

Answer / nishant

To Release the Memory Occupied by Object by implicit way
then use finalize() Method...And release the Memory by
Explicit Way then Use dispose() Method..

Is This Answer Correct ?    0 Yes 0 No

What is the Difference B/W Finalize() and Dispose() in .Net?..

Answer / sushma

A Dispose() method is explicit, meaning you code Dispose()
up and explicitly call it in your application or system
code. A Finalize() method is implicit, meaning you code
Finalize() up but never actually call it — Finalize() is
called behind the scenes by the .NET GC mechanism.

The GC call the Finalize() function automatically to destroy
the object called implicit destroy. when you want to destroy
a objects that you think no longer need and free it from
memory, then we will use the dispose function. For better
performance we will use the dispose function explicitly.

Is This Answer Correct ?    5 Yes 7 No

Post New Answer

More ASP.NET Interview Questions

What is the Intermittent crashing of application in production?

0 Answers   Microsoft,


Describe the difference between inline and code behind - which is best in?

0 Answers  


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

0 Answers  


how we declare interface

2 Answers  


Security types in ASP/ASP.NET? Different Authentication modes?

4 Answers   QuadLabs Technologies,


What is session tracking & methods?

4 Answers   C Squared Systems,


What is the other method, other than GET and POST, in ASP.NET?

3 Answers  


relacement of websevices in .net 3.0?

1 Answers   Mind Tree,


How to remove cache object in asp.net?

2 Answers   TVS,


What methods are fired during the page load?

3 Answers  


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

0 Answers  


What is inheritance and an how it be used, example with an example?

0 Answers   Siebel,


Categories