Collection:
The collection provides an architecture like a list where we can store and manipulate the group of items.
Through Collections, we can achieve operations such as searching, sorting, insertion, manipulation, and deletion.
The collection framework provides many interfaces (Set, List, Queue, Deque) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet).
Hirarchy:
Iterable interface
-> collection interface
-> list interface -> arrayList, linkedList, vector and stack implementation classes.
-> queue interface -> implementation class - priorityQueue
interface - deque -> implementation class -> arrayDeque(implementation class of both queue and deque interfaces).
-> set interface -> implementation class - hashSet, linkedHashSet.
interface - sortedSet -> treeSet.