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:
- Collection
- Set
- Sorted Set
- List
- Map
- 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
Overriding hashCode() and equals()
What It Means if we Don\'t Override equals()
Implementing an equals() Method
So What Do we Do with a Collection?
Key Interfaces and Classes of the Collections Framework
Overview of Memory Management and Garbage Collection
Overview of Java\'s Garbage Collector
When Does the Garbage Collector Run?
How Does the Garbage Collector Work?
Reassigning a Reference Variable