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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the web.config file in asp?

1219


How will you load dynamic assembly? How will create assesblies at run time?

974


What’s the catch?

1161


6. Tell us about a time when you failed to meet a deadline. What were the repercussions?

2207


What is the concepts of globalization and localization in .net?

1003


What are the server controls in asp.net?

1002


What is another word for redirect?

988


9. Why should we hire you over the others waiting to be interviewed?

2861


Elaborate differentiation between Cache and Application?

1018


Define globalization and localization.

1037


How can we inherit a static variable?

1118


What is class and object in asp.net?

1284


What is the latest version of asp.net?

1069


If you are using components in your application, how can you handle exceptions raised in a component?

2743


Can you clarified A Web service can only be written in .NET or not?

1081