through which algorithm does the garbage collector works?
how the garbage collector will understand that the object
will going to be deleted?



through which algorithm does the garbage collector works? how the garbage collector will understan..

Answer / Mahesh Kumar

Garbage collection is an automatic memory management technique used by many programming languages. The most common garbage collection algorithms are:
1. Reference Counting
2. Tracing Garbage Collection (also known as Mark-and-Sweep or Copying Garbage Collection)nThe garbage collector will understand that an object can be deleted when there are no more references pointing to it. In tracing garbage collection, the collector uses mark-and-sweep technique where it first marks all reachable objects (objects with a reference) and then frees unmarked memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

Full from of MP3?

2 Answers  


how many languages .net is supporting now?

4 Answers  


what is web configuration file

1 Answers   HCL,


how to invoke the macro in another macro?

1 Answers   Accenture,


1.group by clause explain along with an example 

1 Answers   Parexel,


There are 2 tables: EMP : EmpId, Ename, Sal, DeptId DEPT : DeptId, Dname Write a query to find out emp names and their department names. if any emp has null in Deptid the it shows ?No Department?. Write a query to find out those department names which has no employee. Write a query to find out those employees whose salary is greater than their department?s average salary.

1 Answers   Oracle,


in a VB application, where the data will be stored after manipulation? what is the syntax for that?

1 Answers   TCS,


What are data structures?

1 Answers  


Hi Friends , i am very new in VB 6.0 Any body can able to help me ? i need interview question and answer vb 6.0 . please send honeysukumar@yhaoo.com

2 Answers  


Who is the Best SAS/Clinical Trainer in Hyderabad

1 Answers  


needs examples for black box testing and white box testing

1 Answers   CTS, IBM, Wipro,


how to convert the data from HTML file to SAS dataset?

1 Answers   Accenture,


Categories