Key Interfaces and Classes of the Collections Framework

Key Interfaces and Classes of the Collections Framework

Now we are discussing abut key interfaces of the collection frame work .Its a important to know whats the purpose of the each of the key interfaces and also use the collections and we also know that how can i choose based on a stated requirement.

The collections API begins with a group of interfaces, but also gives us a truckload of concrete classes. that interface are six which is flowing here:

  1. Collection
  2. Set
  3. Sorted Set
  4. List
  5. Map
  6. Sorted Map


--------------------------------------------------
Map Impl.       |Set Impl.       | list impl.   |
-------------------------------------------------
HashMap         |HashSet         |ArrayList     |
-------------------------------------------------
Hashtable       |LinkedHashSet   |Vector        |
-------------------------------------------------
TreeMap         |TreeSet         |LinkedList    |
-------------------------------------------------
LinkedHashMap   |                |              |
------------------------------------------------- 

Not all collections in the Collections Framework actually implement the Collection interface. In other words, not all collections pass the IS-A test for Collection.

By:umang
Date:2013-03-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related scjp1.5 chap8 Links

scjp1.5 chap8 interview questions and answers for experienced and fresher