Apr 13, 2012

Map Interface

A map is an object, which stores data in the form of relationships between keys and values.
• A map cannot contain duplicate keys; each key can map to at most one value. If key information is known, its value can be retrieved from the Map object.
• Following are the classes that implement Map interface:
 –HashMap
·         Subclass of AbstractMap used to create hash tables
 –TreeMap
·         Subclass of AbstractMap used to create trees

0 comments :

Post a Comment