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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are extensions in c#?

533


What is inumerable?

569


How does return work in c#?

504


What is the difference between int and int in c#?

489


What is an int c#?

478






What is the difference while using directive vs using statement ?

514


How more than one version of an assembly can keep in same place?

514


Is unity object oriented?

489


What is Dependency of Injection?

533


What is yield break in c#?

503


What is boolean method?

516


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

519


How do you clear a list in c#?

491


How do you name a variable in c#?

499


What is difference between continue and break in c#?

475