Languages

What is the difference between ArrayList vs LinkedList in java?

11 points
Asked by:
Marcin
2447

I need quick and simple explanation what is the difference between ArrayList vs LinkedList in java?

java.util.ArrayList arrayList;
// vs
java.util.LinkedList linkedList;
  • I would appreciate usage examples, when to use ArrayList and when it is better to use LinkedList.
  • Also complexity differences - time and memory.

 

0 answers
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.