0 votes
in JAVA by
Difference between ArrayList and LinkedList in Java?

1 Answer

0 votes
by
The obvious difference between them is that ArrrayList is backed by array data structure, supprots random access and LinkedList is backed by linked list data structure and doesn't supprot random access. Accessing an element with the index is O(1) in ArrayList but its O(n) in LinkedList. See the answer for more detailed discussion.

Related questions

+2 votes
asked Jul 27, 2021 in JAVA by SakshiSharma
+1 vote
asked Oct 16, 2020 in JAVA by SakshiSharma
...