View RSS Feed

Algorithm and Data Structure

Java Linked List Implementations

Rate this Entry
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 can’t 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:

• java.util.ArrayList
• java.util.LinkedList
• java.util.Vector
• java.util.Stack

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 Implementations
List listA = new ArrayList();
List listB = new LinkedList();
List listC = new Vector();
List listD = new Stack();

Submit "Java Linked List Implementations" to Facebook Submit "Java Linked List Implementations" to Digg Submit "Java Linked List Implementations" to del.icio.us Submit "Java Linked List Implementations" to StumbleUpon Submit "Java Linked List Implementations" to Google

Comments