Note - Java Collections
A collection is an object that groups multiple elements into a single unit and used to store, retrieve,manipulate, and communicate aggregate data.
Collections framework
Set is a special kind of collection and that can not have duplicate elements.
List(sometimes called a sequence) can contain duplicate elements.
Queue -FIFO manner, and provides insertion, extraction and inspection operations
Deque - both FIFO and LIFO, and provides insertion, extraction and inspection operations
Map - has key and values, can not contain duplicate values
General purpose implementations
Special purpose implementations
Concurrent implementations
Wrapper implementations
Convenient implementations
Abstract implementations
Shuffling
Routing Data Manipulation
Searching
Composition
Finding Extreme Values
Benefits of the java collections framework
content taken from Oracle docs
Collections framework
- Interfaces
Set is a special kind of collection and that can not have duplicate elements.
List(sometimes called a sequence) can contain duplicate elements.
Queue -FIFO manner, and provides insertion, extraction and inspection operations
Deque - both FIFO and LIFO, and provides insertion, extraction and inspection operations
Map - has key and values, can not contain duplicate values
- Implementations
General purpose implementations
Special purpose implementations
Concurrent implementations
Wrapper implementations
Convenient implementations
Abstract implementations
- Algorithms
Shuffling
Routing Data Manipulation
Searching
Composition
Finding Extreme Values
Benefits of the java collections framework
- Reduces programming effort
- Increases program speed and quality
- Allows interoperability among unrelated APIs
- Reduces effort to learn and to use new API s
- Reduces effort to design new APIs
- Fosters software reuse
content taken from Oracle docs
Comments
Post a Comment