Interviews18 answers
What is Value Type and Reference Type?
18 Answers
Value type -are stored on stack memory, get freed go out scope
Reference type- are stored on heap memory, need garbage collection to free memory
MUHAMMADRAMJAN MIAPosted Apr 30, 2018, 10:00 PM EDT
value type will store in stack.
reference type will store in heap .
string only reference type.
remaining all data types are value type.
Satish SanaboyinaPosted Mar 15, 2018, 6:46 PM EDT
down vote
value data type and reference data type
1) value( contain the data directly ) but reference ( refers to the data )
2) in value( every variable has its own copy) but
in reference (more than variable can refer to some objects)
3) in value (operation variable can`t effect on other variable ) but in reference (variable can affect other )
4) value types are(int, bool, float) but reference type are (array , class objects , string )
Bharathi RajaPosted Jan 19, 2018, 8:52 PM EST
In value type we the data size is fixed
Like int,float,double
In reference type data size is not fixed
Like string, object
Mukesh KumarPosted Aug 31, 2017, 5:34 AM EDT
Reference Type variables are stored in the heap while Value Type variables are stored in the stack.Value Type: A Value Type stores its contents in memory allocated on the stack. When you created aValue Type, a single space in memory is allocated to store the value and that variable directly holds avalue.
Rushikesh shahapurkarPosted May 11, 2017, 3:57 AM EDT
Reference Type variables are stored in the heap while Value Type variables are stored in the stack.Value Type: A Value Type stores its contents in memory allocated on the stack. When you created aValue Type, a single space in memory is allocated to store the value and that variable directly holds avalue.
Rushikesh shahapurkarPosted May 11, 2017, 3:57 AM EDT
Reference Type variables are stored in the heap while Value Type variables are stored in the stack.Value Type: A Value Type stores its contents in memory allocated on the stack. When you created aValue Type, a single space in memory is allocated to store the value and that variable directly holds avalue.
Rushikesh shahapurkarPosted May 11, 2017, 3:57 AM EDT
Reference Type variables are stored in the heap while Value Type variables are stored in the stack.Value Type: A Value Type stores its contents in memory allocated on the stack. When you created aValue Type, a single space in memory is allocated to store the value and that variable directly holds avalue.
Rushikesh shahapurkarPosted May 11, 2017, 3:57 AM EDT
Reference Type variables are stored in the heap while Value Type variables are stored in the stack.Value Type: A Value Type stores its contents in memory allocated on the stack. When you created aValue Type, a single space in memory is allocated to store the value and that variable directly holds avalue.
Rushikesh shahapurkarPosted May 11, 2017, 3:56 AM EDT
value type stored in stack.and reference type stored in heap.
Dattatray UdamalePosted Apr 9, 2017, 2:38 AM EDT
value type stored in stack.and reference type stored in heap.
Dattatray UdamalePosted Apr 9, 2017, 2:38 AM EDT
value type stored in stack.and reference type stored in heap.
Dattatray UdamalePosted Apr 9, 2017, 2:38 AM EDT
value type stored in stack.and reference type stored in heap.
Dattatray UdamalePosted Apr 9, 2017, 2:38 AM EDT
value type stored in stack.and reference type stored in heap.
Dattatray UdamalePosted Apr 9, 2017, 2:38 AM EDT
value type stored in stack.and reference type stored in heap.
Dattatray UdamalePosted Apr 9, 2017, 2:38 AM EDT
A Value types holds the data in Stack, it is fixed length type, reference type holds the data in heap,heap is now more manage, its variable length..
Samatha ReddyPosted Mar 16, 2017, 3:59 AM EDT
A Value Type holds the data within its own memory allocation and a Reference Type contains a pointer to another memory location that holds the real data. Reference Type variables are stored in the heap while Value Type variables are stored in the stack.
A Value Type stores its contents in memory allocated on the stack
A Reference Type stores its contents in memory allocated on the heap
Ayappan AlagesanPosted Feb 10, 2017, 4:02 AM EST
A Value Type holds the data within its own memory allocation and a Reference Type contains a pointer to another memory location that holds the real data.
Reference Type variables are stored in the heap while Value Type variables are stored in the stack.
Ashraful IslamPosted Nov 25, 2016, 7:33 PM EST





