Advertisements
Advertisements
Question
Array is a non-primitive data type.
Options
True
False
MCQ
True or False
Solution
This statement is True.
Explanation:
In Java, an array is a non-primitive data type since it is an object that may hold numerous items of the same type (for example, int, char, or String). Arrays, unlike primitive data types (int, char, boolean, and so on), are reference types that hold the memory address of the elements rather than the actual values.
shaalaa.com
Is there an error in this question or solution?