What is the relation between Garbage collector and finalize
and destructor?

Answers were Sorted based on User's Feedback



What is the relation between Garbage collector and finalize and destructor?..

Answer / kanak

GC checks for those resources which are no longer used by
the process. To release the memory from these resources and
in order to regain the memory heap GC initiates destructors
to destroy such instances of the program. Before the
destructor void an instance variable finalize routine gets
executed. This routine performs whatever is to be done
before the object return to void state or prior to release
of any unused resources.

Is This Answer Correct ?    6 Yes 2 No

What is the relation between Garbage collector and finalize and destructor?..

Answer / aparna

here the GC calls an object's FINALIZE metod immediately
befoer it collects an object that is no longer reffered by
the application
GC doesnt actually run finalize metod when the GC finds a
FINALIZE method it queues the obj up for the finalizer to
execute the objects metod

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More VB.NET Interview Questions

how to create views in sql with syntax and example

5 Answers  


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

0 Answers  


How do you declare static variable and how it is declared and what is its lifetime?

3 Answers   Infosys,


Can we use Vb.Net and C# language simultaneously in one .Net application?

0 Answers   PUCIT,


What is the role of new keyword?

0 Answers  






linex will support dot net?

4 Answers   Phoenix Technologies,


Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.

0 Answers   Infosys,


I want to sample Hotel management project in vb.net because still now i am doing that project for small hotel....so please send me my email id is jmuthu_pearls@yahoo.com...

4 Answers   Sapphire Comfort Hotel, TATA,


What is friend and protected-friend access specifier in vb.net?

1 Answers  


Write a VB.Net console program to check whether a number is perfect or not.

1 Answers   Wipro,


Described strong typing

0 Answers  


What is branching logic control in VB.NET?

0 Answers  


Categories