• August 31, 2014
  • Core Java
  • Comments Off on Collection interfaces in java

Collection interfaces in java

Collection interfaces:

Collection interfaces are abstract data types that represent collections and allow collections to be manipulated independently of the details of their representation.

 Collection interfaces are given below:

1. Collection interface:

Collection interface is the root interface in the collection hierarchy. It declares the core methods for all collections.

2. List interface:

A List represents an ordered or sequenced group of elements. It may contain duplicate elements. It extends the collection interface.

3. Set interface:

A set represents a group of elements which can’t contain a duplicate element. It extends the collection interface.

4. SortedSet interface:

SortedSet interface extends Set interface. SortedSet  interface maintain ascending order in its elements.

5. Map interface:

A map represents an object with key value pair.  A map cannot contain duplicate keys and one key can map to at most one value.

6. Map.Entry Interface:

It provides the facility to work with a map entry.

7. SortedMap interface:

SortedMap interface extends Map interface. It maintains its entries in ascending key order.

8. Queue interface:

Queue represents a collection for holding elements prior to processing.

9. Deque interface:

Deque interface provides the methods to manipulate double-ended-queue or deque. A deque represents a linear collection of elements that support insertion, retrieval and removal of elements at both ends.

10. Enumeration interface:

It provides the methods to get a series of elements from a collection of object taking one at a time.
 
Next Topic: Collection interface in java with example.
Previous Topic: Collection framework in java.

Related Topics:

Collection framework in java.
Collection interfaces in java.
Collection interface in java with example.
Set interface in java with example.
SortedSet interface in java with example.
List interface in java with example.
Map interface in java with example.
Daemon thread in java in java with example.
SortedMap interface in java with example.
Queue interface in java with example.
Deque interface in java with example.
Enumeration interface in java with example.
Collection classes in java with example.
HashSet in java with example.
LinkedHashSet in java with example.
TreeSet in java with example.
ArrayList in java with example.
LinkedList in java with example.
HashMap in java with example.
LinkedHashMap in java with example.
TreeMap in java with example.
PriorityQueue in java with example.
ArrayDeque in java with example.
Abstract classes in collection framework in java with example.
Sorting in java with example.
Comparable interface in java with example.
Comparator interface in java with example.
Properties class in java with example.
Hashtable in java with example.
ListIterator interface in java with example.

 


Comments are closed.