Collections in java is a framework that provides an architecture to store and manipulate the group of objects.
All the operations that you perform on a data such as searching, sorting, insertion, manipulation, deletion etc. can be performed by Java Collections.
Java Collection simply means a single unit of objects. Java Collection framework provides many interfaces (Set, List, Queue, Deque etc.) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet etc).
Collection represents a single unit of objects i.e. a group.
- Provides readymade architecture.
- Represents set of classes and interface.
- Is optional.
Collection framework represents a unified architecture for storing and manipulating group of objects. It has:
- Interfaces and its implementations i.e. classes
- Algorithm
1. ArrayList
2. LinkedList
3. HashMap
4. Sorted Maps
5. HashSets and Sets
6. Using Custom Objects in Sets and as Map Keys
7. Sorting Lists Using Comparators
8. Natural Ordering and the Comparable Interface
9. Queues
10. Iterators
11. Iteratort continued
12. Deciding which collection to use
13. Complex Data Structures
Collection Framework Overview.PNG