If i have 100 objects in my application are out of
scope.when first time garbage collected how many objects
memory reference are free?

Answers were Sorted based on User's Feedback



If i have 100 objects in my application are out of scope.when first time garbage collected how man..

Answer / radhika

garbage collector cleans the memory based on the concept of
unreachable roots.so if these 100 objects are not in the
list of reachable roots provided by the jitcompiler which
is avalable to garbage collector then they will be removed.

Is This Answer Correct ?    5 Yes 1 No

If i have 100 objects in my application are out of scope.when first time garbage collected how man..

Answer / shailesh

First time free any object.Second time it will clean 100
object memory reference.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Sharp Interview Questions

What is difference between c sharp and c#?

0 Answers  


What is inner class in c#?

0 Answers  


What Happens In Memory When You Box And Unbox A Value-type?

0 Answers   Siebel Systems,


Explain how to parse a datetime string?

0 Answers  


What is property in c#?

0 Answers  






What?s different about switch statements in C#?

2 Answers  


what is the difference between passing a value object by reference and a reference object by value?

4 Answers   TCS,


What is difference between c and c sharp?

0 Answers  


What is escape character in c#?

0 Answers  


What is state c#?

0 Answers  


How can you write a class to restrict that only one object of this class can be created (Singleton class)?

0 Answers  


What is the difference between an application domain and a process?

0 Answers  


Categories