Collection Frame work (Introduction)
Introduction :
This framework was introduced in JAVA SE v 1.2
what is a collection object ?
Using an object to store a group of other objects, it means that we can use a class object as an array. such an
object is called ‘collection object’ or ‘container object’ .
We are using collection object to store 4 objects. A collection object has a class called as ‘collection class’ or ‘container class’.
all the collection classes are available in package java.util . a group of collection classes is called collection frame work .
in fact, collection object can not store the physical copies of other objects, it stores only references of other objects .
The Interface and Classes of Java Collection Framework
Collection Interface
Iterator Interface
Set Interface
List Interface
ListIterator Interface
Map Interface
SortedSet Interface
SortedMap Interface
HashSet & TreeSet Classes
ArrayList & LinkedList Classes
HashMap & Treemap Classes
Vector and Stack Classes
Note : We can not store primitive data types in the collection objects. we can store only objects since the main aim of the collections is to handle objects only,not primitive data types.
