Which of the below options are not a property of java arrays.
Array is a data structure which contains data of same type
array is a fixed size component.
arrays are stored in heap
arrays are dynamically growable
arrays in java are fixed size, it won't grow dynamically.
Properties of arrays in java:
1. Array is a data structure which contains data of same type (homogeneous data type values)
2. Arrays are fixed size. Once you create an array of a size, then you can't modify its size. Size is constant.
3. Arrays are reference types, so they get stored in heap memory. All reference types will be stored in heap.
4. Array's length is a constant value, which gets assigned while creating and initializing an array.
Back To Top