If you have ever used for ex. an ArrayList or Linklist you have definitely used The Java Collection Framework.
Java Collection Framework [JCF]- A group of interfaces and classes. The classes allows user to use operation to store and manipulate a collection.
Java Collection Framework Interface
- List
- Classes which implements the list interface
- ArrayList
- LinkedList
- Classes which implements the list interface
- Sets
- Classes which implements the sets interface
- TreeSet
- HashSet
- LinkedHashSet
- Classes which implements the sets interface
- Maps
- Classes which implements the maps interface
- HashMaps
- TreeMaps
- Classes which implements the maps interface
List Interface
List Interface – is a set of signatures(change or provide a definition) that allows implementation of a linear list.
The top signature of List Interface
- add () – add an object to the list
- clear() – remove all elements from the list
- get (int e) – returns the element in index e
- remove (int e) – remove the elements in index e
- size () – returns the size of the list
Sets Interface
Sets Interface – is a list of signatures(change or provide a definition) that allow implementation of an unsorted list that can’t have any duplicate elements
Conclusion
Java Collection interface provide a blueprint for classes. Classes which implements the java collection interface share a standards method for grouping java object, making accessing the element of these collection less cumbersome.