Java Linked List Implementations
by, 02-19-2012 at 06:57 AM (595 Views)
Collection interface is subtype of a List. Collection interface methods are also present in list interface.
List cant be instantiated as it is an interface. For creation of instance of the List, create concrete implementation instance of the interface. In Java Collection APIs, these options are present:
In java.util.concurrent package, List implementations are present.
How a List instance is created is shown here in examples:
Java Code: This is the code to explain Linked List ImplementationsList listA = new ArrayList(); List listB = new LinkedList(); List listC = new Vector(); List listD = new Stack();