What is a reference type ?
A reference type is a data type, where variable is present in one memory location and the actual data is stored in a different memory location.
A reference type variable always holds an address which is pointing to actual data location.
Ex: if you declare a string as followed string s= "skillgun";
usually s is present in a memory location and which carries address of the location where skillgun is stored.
It means reference type variables can not store actual data.
Back To Top