Valuetype/reference type?

Answers were Sorted based on User's Feedback



Valuetype/reference type?..

Answer / kalyani

String is not a value Type.It is a reference Type.

Is This Answer Correct ?    6 Yes 1 No

Valuetype/reference type?..

Answer / kamlesh sharma

value types are stack allocated and reference types are
heap allocated

value types holds the actual data stored at variable
location and reference types holds the addresses

Is This Answer Correct ?    3 Yes 0 No

Valuetype/reference type?..

Answer / vijay sharma

ValueType are the normal datatype like string,int, float
etc. and they are stored on stack whereas ReferenceType are
the object type like classes and they are stored at heap.

Is This Answer Correct ?    4 Yes 2 No

Valuetype/reference type?..

Answer / naveen

struct is an example of value type.

Is This Answer Correct ?    2 Yes 0 No

Valuetype/reference type?..

Answer / sri

Value types are stored directly on the stack, either within
an array or within another type.

Reference type are stored on the run time heap.That only
accessed through a reference to that storage.

Is This Answer Correct ?    2 Yes 0 No

Valuetype/reference type?..

Answer / nitin

Value type directly contain their data in stack and
reference type store a reference to variable's memory
address

value type uses stack and reference type uses heap to store
data

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What does the keyword virtual mean in the method definition?

3 Answers   Ipog Software, Satyam, Visual Soft,


Can a abstract class have a constructor?

0 Answers  


Can we inherit private class in c#?

0 Answers  


how to cleanup object that does not support dispose method? How to implement dispose for such scenarios?

2 Answers   ITC Infotech,


What is oledbconnection c#?

0 Answers  






How do I register my code for use by classic com clients?

0 Answers  


What is different between Boxing and Unboxing?

0 Answers  


What is tpl in c#?

0 Answers  


What is the difference between virtual and override in c#?

0 Answers  


How to implement singleton design pattern in c#?

0 Answers  


How is method overriding different from overloading?

0 Answers  


What are the properties of c#?

0 Answers  


Categories