Page 1
Wink Notes
B.Tech CSE — 5th Semester
Java Programming
— Unit - 3 —
1. Introduction to Collections
Arrays in Java have a fixed size. Once created, you cannot dynamically add or remove elements. The Java Collections Framework (JCF) solves this by providing a unified architecture to store, manipulate, and search dynamic groups of objects.
1.1 The Core Hierarchy
The framework is primarily based on two root interfaces in the `java.util` package:
- `Collection`: The root of the hierarchy for Lists, Sets, and Queues.
- `Map`: A separate hierarchy for Key-Value pairs (like dictionaries).