Possible Duplicate:
Java - HashMap vs Map objects
I want to know the difference between HashMap
and Map
in java..??
Map
is an interface, i.e. an abstract "thing" that defines how something can be used. HashMap
is an implementation of that interface.