What is difference between value and reference types?
Answer Posted / kartheeksirangipatel
ValueType:
-->Value types holds data directly.
-->Nodefault value for valuetype
-->valuetype stored in stack memory
-->Stack is not accessible to Garbage collector
Ex--->Predefined datatypes
Structures
Enumarator
Reference type:
-->Ref type does not holds the datadirectly
-->Ref type holds the default value
-->ref type will be stored in Heap memory
-->Heap is accessible to garbage collector
Ex--->Arryas
Classes
Objects
Deligates
Interfaces
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain the difference between a Private Assembly and a Shared Assembly
What is difference between === and ==?
What is parsing?
List down the different ide’s provided by microsoft for c# development.
Can abstract class instantiated c#?
How many types of constructors are available in c#?
Explain about Threading Types.
Describe ado.net?
When would you use generics in your code c#?
Is concurrent queue thread safe?
Is is possible to force garbage collector to run?
Explain boxing and unboxing in c#?
What is delegation in oops?
Why do we use partial class in c#?
Where do I put dll files?