Priya Pallavi has Published 51 Articles

How (where) are the elements of an array stored in memory?

Priya Pallavi

Priya Pallavi

Updated on 30-Jul-2019 22:30:20

2K+ Views

In Java, arrays are objects, therefore just like other objects arrays are stored in heap area. An array store primitive data types or reference (to derived data) types Just like objects the variable of the array holds the reference to the array.

Advertisements