If you’re passionate about Java, you should get to know the Collections Framework.
let's do a cross section of Collections Framework. ✂️
Collection: group of objects contained in a single object.
Framework: set of classes in java.util for storing collections
Now you got the basic idea, right.
There are four main interfaces in the Java Collections Framework.
- List
- Set
- Queue, Deque
- Map
Note the point, these these interfaces form the basis of the framework.
Look at the following image and understand how they are related.
Iterable is the parent of Collection, so we can say that Collection inherits all the behavior of Iterable. Think of Collection and Map. While they're not directly related in terms of inheritance, they have distinct roles in the Java Collections Framework. Collection, manages individual elements, while Map, handles key-value pairs. Together, they contribute to the efficient organization and management of data in…