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 the difference between value types and reference
types?

Answers were Sorted based on User's Feedback



what is the difference between value types and reference types?..

Answer / nazrul.nazi

Value type-
1)Direct Contain their data.
2)Operation on one variable don't effect the other variable
3)int,short,structure,enum
Reference type-
1)store the refrence to the data.
2)operation on one variable can effect the other
3)Classes,Array,Delegates

Is This Answer Correct ?    5 Yes 1 No

what is the difference between value types and reference types?..

Answer / susant

Value type - bool, byte, decimal, double, enum , float,
int, long, short, strut, uint, ulong,
Value types are stored in the Stack
Reference type - class, delegate, interface, object, string
Reference types are stored in the Heap

Value types : Value types directly contain their data, and
instances of value types are either allocated on the stack
or allocated inline in a structure. Value types can be
built-in (implemented by the runtime), user-defined, or
enumerations.

Reference types : Reference types store a reference to the
value's memory address, and are allocated on the heap.
Reference types can be self-describing types, pointer
types, or interface types. The type of a reference type can
be determined from values of self-describing types. Self-
describing types are further split into arrays and class
types. The class types are user-defined classes, boxed
value types, and delegates.

Variables that are value types each have their own copy of
the data, and therefore operations on one variable do not
affect other variables. Variables that are reference types
can refer to the same object; therefore, operations on one
variable can affect the same object referred to by another
variable. All types derive from the System.Object base type.

Is This Answer Correct ?    3 Yes 1 No

what is the difference between value types and reference types?..

Answer / amit kumar singh

Value Type data stored in stack where as Refference type
Data stored in Heap.....

Is This Answer Correct ?    1 Yes 0 No

what is the difference between value types and reference types?..

Answer / gurpreet kaundal

value types are char,bytes,long and any data type but the reference types are classes,interfaces any type of functions.......and in reference type it stored the reference type varibles it means it stored the address of the varible in the heap...........and in value type it stroed the value of tha varible in the stack...........

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net AllOther Interview Questions

what is a namespace?how they are classified?write a program which contains class,object,inheritance?

0 Answers   Six Sigma,


what is the use of SQL command builder class in C#.net? Explain how can we execute a stored procedure using C#.Net? What is the difference between .DLL and .EXE?

2 Answers  


How do we do authentications using atlas?

0 Answers  


Which software is used for .net programming?

0 Answers  


Which is the best institute in chennai to learn DotNet? Please help.

48 Answers   HCL, Infosys, NIIT,


how to make and display a form without title bar?

0 Answers   Six Sigma,


what are the lifetime events of a from?

1 Answers   Six Sigma,


What is Com Callable wrapper?when it will created?

0 Answers  


Differnce between managed code and unmanaged code ?

0 Answers  


what is just in time compilation?

1 Answers   Six Sigma,


What is msil, and why should my developers need an appreciation of it if at all?

0 Answers  


i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

0 Answers  


Categories