Explain the Difference between value and reference type.
Answer Posted / kinjal
c# provides a set of datatypes. datatypes of c# contain two categories one is value type and another is reference type.
value type is a variable. datatype value store in variables while a variable of a reference type stores a reference to the data.
both value type and reference type have one common thing - both derived from system.object.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is class library in .net
Can I write my own .net host?
Explain about the Common Language Runtime?
How do you define the lease of the object in .net?
Can a try block have more than one catch block?
Tell us the differences between an interface and an abstract class in .net?
What is lazy initialization?
How can you instantiate a tuple?
How to get the number after decimal point in .net?
What is misl?
Tell us the difference between the while and for loop. Provide a .net syntax for both loops?
Explain webfarm vs webgardens in .net?
What is operator overloading in .net?
Is .net core stable?
Do you know what is the difference between an abstract class and an interface?