Forum Stats

  • 3,875,427 Users
  • 2,266,915 Discussions
  • 7,912,205 Comments

Discussions

How to prove that Array list is contiguous and Linked list isn't?

User_V1KBG
User_V1KBG Member Posts: 1 Green Ribbon
edited Sep 24, 2022 3:04AM in New To Java

We know that elements in an array list are stored in contiguous manner and elements in linked list are stored in non-contiguous manner. Is there any way to prove it? I mean any piece of code, through which we are able to show this behavior of array list and linked list.

Tagged:

Comments