Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is value type and reference type?

Answers were Sorted based on User's Feedback



What is value type and reference type?..

Answer / usman

In simple words value types are those datatypes that store
there values on stack memory and values are settle down at
compile time example are "ENUM" and reference type are
those datatype that store there values in heap memory and
settle down while run time i.e dynamic types examples are
strings,class type etc

Cheers

Is This Answer Correct ?    10 Yes 1 No

What is value type and reference type?..

Answer / kishore

Value types are the variables that directly contain the
vaiue and are stored in stack memry.
Example: int, char, float...

Reference types does not contain the value directly but has
the address of the value i.e reference address..
Reference types are stored in Heap memory.

Is This Answer Correct ?    1 Yes 1 No

What is value type and reference type?..

Answer / sushma

value types store values,even if we copy that the orginal
one it is uneffected,even if we modify the copied one ,
the reference types stores refereneces of the object, if
copy that one ,it is effected,if we modify the copied one

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Why do we need a finally block in try catch block while handling exceptions

4 Answers   IBM,


What are Namespaces?

1 Answers  


What is the benefit of using interface in c#?

0 Answers  


What is gac? What are the steps to create an assembly and add it to the gac?

0 Answers  


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

0 Answers   Siebel,


What tool we have to use to install assembli in gac folder.

0 Answers  


Why is it not a good idea to use empty destructors?

0 Answers  


Can you inherit from a sealed class?

0 Answers  


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

0 Answers  


Can private virtual methods be overridden in c#.net?

0 Answers  


what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

1 Answers   4Cplus,


Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

0 Answers   Siebel,


Categories