MY mENU


Friday 10 February 2012

Collection Interface

The core Collection Interfaces encapsulates different types of Collections. These Interfaces allow Collections to be manipulated independently of the details of their representation.

Collection — The root of the Collection Hierarchy. A collection represents a group of objects known as its elements. The Collection Interface is the least common denominator that allcollections implement and is used to pass collections around and to manipulate them when maximum generality is desired.

- Some types of Collections allow duplicate elements, and others do not. Some are ordered and others are unordered.

- The Java platform doesn't provide any direct implementations of this Collecton Interface but provides implementations of more specific subinterfaces, such as Set and List.

- All the Collection Classes in java.util package have been divided into 4 groups

1. Sets
2. Lists
3. Queues
4. Maps



See the collection Interface Hirarchy:





No comments:

Post a Comment