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
What is trace in vb.net?
Explain internal keyword in .net framework?
What are the different types of a stream?
Explain global assembly cache (gac)?
Explain clr?
What are the differences between vb.net and c#, related to oops concepts
What is code access security?
What is the class that allows an element to be accessed using unique key?
List the two main parts of .net?
Explain managed code?
Why do we use ansi keyword?
What are the different variables in vb.net?
What are the advantages of migrating to vb.net?
What is the difference between manifest and metadata?
Which namespace are used for accessing the data?