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
What are collections in c#?
The int maps to which C# keyword in .NET type?
Are arrays value types or reference types?
Does c# have primitives?
What is web forms in c#?
Explain about CTS?
What is sqlcommandbuilder c#?
Does c# support properties of array types?
What are the Uses of CLR
What is the use of generics in c#?
What are the properties of c#?
What is the use of dll file in c#?
Can arraylist hold primitive types?
What is list collection in c#?
What is readline library?