Home > DeveloperSection > Interviews > What is the significance of the “finalize” method ?

Posted on    March-28-2011 9:02 AM

 VB.Net VB.Net 
 1 Answer(s)
  1205  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    March-28-2011 12:00 AM

In order to understand the “finalize” method one needs to understand the concept of garbage collection. 
The job of freeing up the memory allocated to objects is that of a garbage collector. When the garbage collector determines that an object is no longer referenced it automatically runs a special destructor function called “Finalize”.

Don't want to miss updates? Please click the below button!

Follow MindStick