ReferenceType
ReferenceType is a category of data types whose values are references to objects stored on the heap, rather than the objects themselves being stored directly in the variable. Variables of a reference type hold addresses that locate the object, while the actual data resides in memory managed separately from the reference.
In practice, assigning a reference type value copies the reference, not the object. This means multiple variables
Memory management for reference types is commonly handled by a garbage collector or runtime allocator. Objects
Language-specific notes: many programming languages treat non-primitive types as reference types. In Java, for example, all
See also: value type, garbage collection, null safety, object references.