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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Does windows 10 need .net framework?

712


Can a view be shared across multiple controllers? If yes, how we can do that?

798


How does �side by side� work for the .net framework 3.0?

697


Will there be a .net compact framework 3.0 release with release of .net framework 3.0?

738


What is meant by viewdata?

726


What is the difference between viewbag and viewdata in asp.net mvc?

838


Is .net core replacing .net framework?

695


What is the use of display modes?

764


what is complex type?

765


What are actions in mvc?

741


What are the new features 3.5 framework against with the tool?

746


How do you specify comments using razor syntax?

800


What is work of clr?

774


How to answer for project questions..?

2411


what is split entity?

787