Collection interfaces:



-List- it extends Collection and declares the behavior of collection that stores a sequence of elements. List can contain duplicate elements.
-Set- It does not allow duplicate objects. The add() returns false when an attempt is made to store duplicate elements.
-SortedSet- It extends Set and declares the behavior of Set sorted in ascending order.
-NavigableSet- It extends SortedSet and declares the behavior of collection that supports the retrival of elements based on the closest matchto a given value.
-Queue- It extends Collection and is often first-in first-out list.
-Deque- It extends Queue and is a double-ended queue.

No comments:

Post a Comment