What does a Java array look like in memory?
n Java, an array stores either primitive values (int, char, ...) or references (a.k.a pointers) to objects. When an object is created by using "new", memory space is allocated in…
n Java, an array stores either primitive values (int, char, ...) or references (a.k.a pointers) to objects. When an object is created by using "new", memory space is allocated in…