What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?



What is the difference between the value-type variables and reference-type variables in terms of gar..

Answer / kirti

The value-type variables are not garbage-collected, they just fall off the stack when they fall out of scope, the reference-type objects

are picked up by GC when their references go null.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

Explain what languages does the .net framework support?

0 Answers  


mention what are the various methods provided by the dataset object to generate xml?

0 Answers   Microsoft,


Is .net core replacing .net framework?

0 Answers  


What does CLR do as soon as an assembly is created ?

2 Answers   MMTS,


Does windows 10 need .net framework?

0 Answers  


How is method overriding different from method overloading

1 Answers   Siebel Systems,


which are the key concepts of entity data model?

0 Answers   Microsoft,


Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?

0 Answers  


Why do you need to box a primitive variable

1 Answers  


How do you initiate a string without escaping each backslash ?

1 Answers  


what are the different stepts to create shared assemblies?

1 Answers  


If we want to construct our own Garbage collector what are the steps things we have to do?

3 Answers   Honeywell, Semantic Space,


Categories