Getting Started with Java Collections Framework

Pulsara Sandeepa
Javarevisited
Published in
5 min readMar 7, 2021

--

Architecture for storing and manipulating a group of objects

Photo by Leora Dowling on Unsplash

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.

curtesy: www.edureka.co

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…

--

--

Pulsara Sandeepa
Javarevisited

Tech Enthusiast | Software Engineer | 3x Salesforce Certified