Skip to content
Sahithyan's S2
Sahithyan's S2 — Program Construction

Map

  • In Java, elements of Map are stored in key/value pairs. Keys are unique values associated with individual Values.
  • A map cannot contain duplicate keys. And, each key is associated with a single value.
  • The Map data structure in Java is implemented by two interfaces, the Map Interface and the SortedMap Interface.
  • Three primary classes implement these interfaces HashMap, TreeMap, and LinkedHashMap.

Map Hierarchy