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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between static or dynamic assemblies?

559


How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?

2555


When do you use virutal keyword?

590


Explain an assembly?

571


What is DLL HELL in VB.NET

612






What are the differences between vb.net and c#, related to oops concepts

572


What is the difference between import system.data.sqlclient and system.data.oledb?

506


how to deploy vb.net with key and evaluation time? any one can help me?

1760


Tell us how many languages are supported by .net?

509


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.

1754


Explain manifest?

502


Explain about rapid application development tool?

514


What are jagged arrays ?

572


How do you define a read only property in a class module?

527


source code for how to login a vb.net application ?

593