In Java, Collections is a framework that gives architecture for storage and the manipulation of groups of objects. Collection basically represents a single unit of objects like a group. All operations that can be performed on a data like searching, insertion, sorting, manipulation, deletion and more can be done by Java Collections. Java Collection framework provides developers with several interfaces – List, Set, Queue, Deque etc. and classes like Vector, Arraylist, Hashset, Treeset, LinkedList, PriorityQueue etc.
Frameworks in Java help with providing readymade architecture. They represent a set of interface and classes. Framework in Java has the optional feature. A collection framework uses algorithms and has interfaces along with implementations.
What collection framework was meant to do?
- Frameworks had to be high performance. The implementations for fundamental collections – linked lists, hashtables, trees and dynamic arrays had to become efficient.
- The framework needed to extend and adapt to any collection easily.
- The framework had to allow all kinds of collections to work in the same manner and with a good degree of interoperability.
Java 8 students get to work on this during the course.