Getting Started with Java Collections Framework
Architecture for storing and manipulating a group of objects
What is meant by the collection framework?
The Collection in Java is a framework that provides an architecture to store and manipulate the group of objects.
Java Collections can achieve all the operations we perform on data, such as searching, sorting, insertion, manipulation, and deletion.
Java Collection means a single unit of objects. Java Collection framework provides many interfaces (List, Set, Queue, Deque) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet).
Hierarchy of Collection Framework
The java.util
package contains all the classes and interfaces for the Collection framework.
Note:
Though java Map interface is a Java Collection framework. It doesn’t inherits from Java Collection framework. Instead it has own interface hierarchy that maintains key-value…