Difference between HashMap and Map in Java..?

user1252812 picture user1252812 · Mar 6, 2012 · Viewed 148.2k times · Source

Possible Duplicate:
Java - HashMap vs Map objects

I want to know the difference between HashMap and Map in java..??

Answer

Lars Kotthoff picture Lars Kotthoff · Mar 6, 2012

Map is an interface, i.e. an abstract "thing" that defines how something can be used. HashMap is an implementation of that interface.