what is the difference between reference type and value type?
vinod kumar 0
Select an image from your device to upload
value type : storage will be on stack memory
Reference type: storage will be on heap memory
stack memory will be allocated by the compiler towards an application ,this
doesn't supprt dynamic creation and destruction.
It is recommended for string small amount of data for faster access.
Runtime will be allocate heap memory.This will support dynamic allocation and destruction.
This memory supports hiearchial representation of data i.e inheritance process.
This memory is recommended for large storage of data.