0

Since array objects are created in Heap memory in Java and as specified in JLS, objects in heap memory are not necessarily contiguous, so Arrays are not contiguous in Java?
So it actually contrasts the original definition of an array of being continuous.

trincot
  • 263,463
  • 30
  • 215
  • 251
  • 3
    Does this answer your question? [Java: are 1-d arrays always contiguous in memory?](https://stackoverflow.com/questions/10224888/java-are-1-d-arrays-always-contiguous-in-memory) – aim97 Sep 18 '21 at 07:48

0 Answers0