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 difference between client-side and server-side validations in ASP.NET?

0 Answers   Sans Pareil IT Services,


What is application and session in asp.net?

0 Answers  


What is serialization?

5 Answers   Piramal Healthcare,


What is Generic? explain clearly?

3 Answers   iGate,


Explain global assembly cache.

0 Answers  


Where on the Internet would you look for Web services?

5 Answers   IBM, MNC, Siebel Systems,


Explain client-side scripting?

0 Answers  


What is the Global.asax used for?

7 Answers   Siebel Systems,


Types of optimization and name a few ?

3 Answers   Accenture,


Explain server control extensibility with reference to asp.net 2.0 ?

0 Answers  


With example & diagram explain AutoPostBack.

2 Answers  


Can we use multiple forms in single asp.net application?

3 Answers   Polaris,


Categories