What is difference between value and reference types?
Answer Posted / payal
value
this stored actual value
reference
stored the address of the value
value store in stack
reference is stored in heap
the variable which are value type they each time create
their own copy
the variable which are reference type they refer the same
object every time
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is difference between array and list?
Explain the types of comments in c#?
What is the difference between throw and throw ex?
What is serialization of data?
Is it possible to inherit multiple interfaces?
Explain states of a thread in c#?
Is c# an open source?
what is the index value of the first element in an array?
How do we achieve encapsulation in c#?
Can arraylist hold primitive types?
What is the class in c#?
When is a class declared as a class abstract?
How do I enforce const correctness in c#?
Is a c# interface the same as a c++ abstract class?
What is the use of inheritance in c#?