A reference is an alias, an alternative way to name an existing object.
Difference between reference and pointers
- A reference can never be null; it must always refer to a legitimate object.
- Once established, a reference can never be changed to make it point to a different object.
- A reference does not require any explicit mechanism to dereference the memory address and access the actual data value.