Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in Java by (6.5k points)
What are the most important List implements?

1 Answer

0 votes
by (11.3k points)
edited by

There are primarily three implements of the List interface and they are as follows:

  • Vector : This is a synchronizable implementation of a resizable array providing legacy methods as well.
  • ArrayList: Normal resizeable implementation of an array in the List interface. This is also the best implementation of the list interface and the most widely used one.
  • LinkedList :If you require a doubly linked-list implementation of the List interface, for particular situations where traversing linearly with an ArrayList may cost more resources, you should use a LinkedList. 
  

If you're looking to learn java, I'd say Arrays and LinkedLists should be your primary learning tools to implement your projects. 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...