Iterate map java

Iterate map java Map is an interface which maps keys to values. Map can’t contain duplicate keys also every key should map to one value. Map is replacement of Dictionary class which is not interface but totally abstract class.