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

Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

0 Answers  


Explain Keep method in Tempdata in ASP.Net MVC?

0 Answers  


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

0 Answers   B-Ways TecnoSoft,


How do you enforce garbage collection in .NET

1 Answers   Wipro,


What is session state management?

0 Answers  


What you mean by routing in asp.net mvc?

0 Answers  


what is view state

3 Answers   Wipro,


How to change the action name in mvc?

0 Answers  


What is ViewData and TempData in ASP.Net MVC?

0 Answers  


Where is tempdata stored?

0 Answers  


Is dapper better than entity framework?

0 Answers  


What is difference between shared and public

1 Answers  


Categories