Computer Science

A non-primitive data type is also referred to as reference type. Explain Why?

Values & Data Types Java

1 Like

Answer

Unlike primitive data type, the allocation of non-primitive data type takes place in dynamic memory. The accessing of non-primitive data types is based on their references (addresses). Hence, non-primitive data types are also referred to as reference type.

Answered By

1 Like


Related Questions