Map , represents a mapping between a key and a value . More specifically, a Java Map can store pairs of keys and values. Each key is linked to a specific value. Once stored in a Map , you can later look up the value using just the key. The Java Map interface is not a subtype of the Collection interface.
Read moreWhat is map interface in Java?
The map interface is present in java. util package represents a mapping between a key and a value . The Map interface is not a subtype of the Collection interface. Therefore it behaves a bit differently from the rest of the collection types. A map contains unique keys.
Read more