Difference between Value Type and Reference Type

Value Type Reference Type Data stored in stack memory Data stored in heap memory When passed as value type new copy is created and passed so changes to variable does not get reflected back. When passed as Reference type then reference of that variable is passed so changes to variable does get reflected back. Value […]

Read More