Referenced data types
- Other than the primitive data types all other types are called as referenced data types.
- Based on requirement we can create either object/reference for predefined classes/interfaces or user defined classes/interfaces and Arrays.
- Be cooool, in Classes and Objects chapter we'll learn what is object/reference
Example:
String name = new String("Java"); ---> object creation
Employee employee = new Employee(); ---> object creation
Here,
name & employee are objects
Thanks for your time.
Nireekshan