Collections Framework
│
├── Collection (interface)
│ ├── List
│ ├── Set
│ └── Queue
│
├── Map (separate hierarchy)
│
└── Collections (utility class)
Collections Framework
├── Data Structures (ArrayList, HashMap, etc.)
├── Interfaces (List, Set, Queue, Map)
└── Utilities (Collections class)
Definition: Java Collections Framework
The Java Collections Framework is a unified architecture that provides a set of interfaces and classes to store, manage, and manipulate groups of objects efficiently.
Simple definition:
Collections in Java is a framework that provides classes and interfaces to store and manipulate groups of objects efficiently.
Collection (Interface)
Collection is a root interface in Java Collections Framework.
Key points:
It is an interface
Parent of List, Set, Queue
Defines basic operations like:
add()
remove()
size()
2.…