Search results
Results From The WOW.Com Content Network
The Collection in Java is a framework that provides an architecture to store and manipulate the group of objects. Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion.
In Java, a separate framework named the “Collection Framework” has been defined in JDK 1.2 which holds all the Java Collection Classes and Interface in it. In Java, the Collection interface (java.util.Collection) and Map interface (java.util.Map) are the two main “root” interfaces of Java collection classes.
A collections framework is a unified architecture for representing and manipulating collections, enabling collections to be manipulated independently of implementation details. The primary advantages of a collections framework are that it:
The Java collections framework is a set of classes and interfaces that implement commonly reusable collection data structures. [1] Although referred to as a framework, it works in a manner of a library. The collections framework provides both interfaces that define various collections and classes that implement them.
The Java collections framework provides a set of interfaces and classes to implement various data structures and algorithms. For example, the LinkedList class of the collections framework provides the implementation of the doubly-linked list data structure.
A collection is an object that represents a group of objects (such as the classic ArrayList class). The Java Collections Framework enables interoperability among unrelated APIs, reduces effort in designing and learning new APIs, and fosters software reuse.
So in JDK 1.2, a separate framework was defined known as “Collection Framework” which holds all the collection classes and interfaces in it. The Collection interface ( java.util.Collection ) and Map interface ( java.util.Map ) are the two main “root” interfaces of Java collection classes.