Reference datatypes

**The reference variables are just like the pointers in C. **

Reference datatypes in java are those which contains reference/address of dynamically created objects. These are not predefined like primitive data types.

Following are the reference types in Java.

  • class types − This reference type points to an object of a class.
  • array types − This reference type points to an array.
  • interface types − This reference type points to an object of a class which implements an interface.