Menu

1 / 2

#36 Known is a drop! Collection Framework in JAVA

DEV Community·Deepikandas·6 months ago
#zCujAFz8
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.