Advertisements
Advertisements
Question
Identify the false statement.
Options
he compiler cannot identify a composite data type.
Primitive data types do not need separate memory allocation.
Size of primitive data type is fixed.
Arrays are primitives.
MCQ
Advertisements
Solution
Arrays are primitives.
Explanation:
Arrays are not primitive data types in Java. Arrays are reference (non-primitive) data types. An array is an object that stores multiple values of the same data type.
shaalaa.com
Is there an error in this question or solution?
