Which type of variables are under the control of garbage
collector?

Answer Posted / sujai cn

The objects which are in the heap , are under the control
of garbage collector.garbage collector is low weight
process which will run in background & clean the heap
(remove the objects from the heap which dont have the
reference , i.e, not reachable object) there are many
algorithms designed to monitor when & how long the garbage
collector has to run.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between field and property in c#?

443


What's the difference between a static method and a non static method c#?

496


What is the difference between firstordefault and singleordefault?

476


How main method is called in c#?

508


Explain the types of assemblies in .net?

527






Explain the difference between Metadata and Manifest

542


Is comparable a functional interface?

500


What is the signature of a method?

483


What is difference between private and static constructor?

462


What are cshtml files?

484


Can a class have multiple constructors c#?

494


What is the purpose of a namespace?

476


What are the differences between a class and a struct?

473


Which of these statements correctly declares a two-dimensional array in c#?

648


What is a di class?

527