Skip to Main Content

New to Java

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

User_V1KBGSep 24 2022 — edited Sep 24 2022

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.

Comments
Post Details
Added on Sep 24 2022
3 comments
208 views