Referential or Non Primitive types
The referential types include Strings
, Classes
, and Objects
. They are called referential types because they refer to objects. Most of the time they are types created by the programmer and not defined by Java except for Strings. The default value of any referential type is null.
SNIPPET
1Employee employee = new Employee("David Johnson");
2
3String str = "AlgoDaily";