List in Java

list
java
data-structure
java-collection-framework
arraylist
linked-list
stack
vector
(Team) #1

List is one of the most common data structures and it can be used in a variety of algorithms and applications. In Java, you do not have to reinvent it. There is a List interface in Java which is a child interface of Collection. The List interface supports access, insertion, deletion of the elements. Each element in List has its own index, starting at 0, then 1 and so on. Since List is an interface in Java, you have to use other classes to create List objects, such as ArrayList(), LinkedList(), Vector(), and Stack().

Read this article to understand List in Java in depth

Have a doubt or thought? Join the discussion now


This is a companion discussion topic for the original entry at http://iq.opengenus.org/list-java/
0 Likes