List Interface in Java
Advertisements
List Interface in Java
List Interface is used to store multiple objects with duplicates that means it allows to store duplicate elements. List Interface are implemented in following collection classes.
- Stack
- Vector
- ArrayList
- LinkedList
Create object for List Implementer classes
Syntax
List_Implemented_class<generic_class> obj=new List_Implemented_class<generic_class>();
Example to create object of Stack
Stack<String> obj=new Stack<String>();
Google Advertisment