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

Explain option explicit?

556


What do you mean by serialization and deserialization?

542


Name and explain some of the exclusive features which are present in vb?

550


Explain the difference between vb.net and c#, related to oops concepts?

493


Explain the difference between thread and process?

504






What is vb.net used for?

548


Name the class which allows an element to be accessed using unique key?

566


Name some of the features of C# which are not present in VB.NET?

550


What is intermediate langauge?

533


Can you please explain the difference between thread and process?

521


Explain namespace?

566


what is diffrence constructor and destructor in vb

550


How do you retrieve the customized properties of a .net application from xml .config file?

514


Tell me which namespace are used for accessing the data?

521


Can you please explain the difference between value and reference types?

523