over 9 years ago
Collection in java can be called as a container, or an object which binds multiple elements into a single unit. Collections in java is a framework used to store, and manipulate group of elements. They represent data items that form a group on which operations such as searching, sorting, insertion, manipulation, deletion etc can be performed to manipulate data.
Collections Framework has:
The Hierarchy of the Collection Framework
1. Iterate
2. Collection
3. List
(i) ArrayList,
(II) Vector,
(III) LinkedList,
(Iv) PriorityQueue,
(v) HashSet,
(vi) LinkedHashSet,
(vii) TreeSet etc
4.Queue
(i) List,
(ii) Queue,
(iii)Deque
5. Sets
(i)HashSet
(ii)LinkedHashSet
(iii)SortedSet
(iv)TreeSet
There are methods of Collection interface
But only three methods are there for Iterator interface.
0 Comment(s)