How garbage collection deals with circular references.



How garbage collection deals with circular references...

Answer / Upendra

Garbage collection in C# handles circular references by marking objects as reachable if they are referenced directly or indirectly by any live object. If an object cannot be reached, it is marked as unreachable and eligible for garbage collection.nHowever, because of the issue with circular references where objects indirectly reference each other without a direct live reference, garbage collection might not immediately collect the unreferenced objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How to implement delegates in c#.net

1 Answers  


List down the different ide’s provided by microsoft for c# development.

1 Answers  


What is event delegate in c#?

1 Answers  


What can be done with c#?

1 Answers  


Explain Direct CAST vs CType ?

1 Answers   MCN Solutions,


What is session c#?

1 Answers  


How do I create a new form in c#?

1 Answers  


What is a custom attribute?

1 Answers  


What is early binding and late binding

12 Answers   ABC, Infosys, TATA,


How can I make sure my c# classes will interoperate with other .net languages?

1 Answers  


What is task parallel library?

1 Answers  


What are access modifiers in c#?

1 Answers  


Categories