Languages

When to use LinkedList instead of ArrayList in Java?

2 points
Asked by:
JustMike
3488

When to use LinkedList instead of ArrayList in Java?

When it is good idea to use LinkedList instead of ArrayList in Java?

Almost always I use ArrayList when I need simple collection.

I wonder what are good examples when I can use LinkedList in my code.

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.