Collection Framework in Java

1. A Collection is a group of individual objects represented as a single unit
2. Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion.
3. The Java Collections Framework is a collection of interfaces and classes which helps in storing and processing the data efficiently.

Interfaces:
List
Set
Map
Queue
Deque
SortedSet

Classes:
ArrayList, LinkedList, Vector, Stack, PriorityQueue, HashSet, LinkedHashSet, TreeSet, HashMap, LinkedHashMap, TreeMap and HashTable.

Collection Interface:
1. Root interface with basic methods like add(), remove(), contains(), isEmpty(), addAll(), clear().. etc.
2. All other collection interfaces and classes (except Map) either extend or implement this interface. For example, List (indexed, ordered) and Set (sorted) interfaces implement this collection.

To get more details please watch below youtube video and Subscribe the channel.


No comments:

Post a Comment