Question: what is the difference between map and hashmap in java?
Answer: The basic difference is : Map is an interface, i.e. an abstract "thing" that defines how something can be used. HashMap is an implementation of that interface.