Java Map Interface Tutorial


Java Map Interface Tutorial
Properties of Java Map Interface

The Map interface stores the elements in key/value pairs (as in Hashtable). It does not accept duplicate keys. One key represents only one value. Two keys may have the same value. For example, two students, with roll numbers 35 and 46, may have the same marks of 50.

Examples on Java Map Interface

Map interface is clearly discussed in interface Map Tutorial.

One important implementation of Map interface is HashMap.

Also refer more interesting WeakHashMap Example in Java.

2 thoughts on “Java Map Interface Tutorial”

Leave a Comment

Your email address will not be published.