what is the difference between primitive and array data types in java?
Non-primitive data types are called reference types because they refer to objects. The main difference between primitive and non-primitive data types are: Primitive types are predefined (already defined) in Java. ... A primitive type has always a value, while non-primitive types can be null .