difference between hash map and hash tablethe


Difference between Hash Map and Hash Table?

The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and allows nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow).

HashMap does not guarantee that the order of the map will stay constant over time. HashMap is unsynchronized and Hashtable is synchronized.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: difference between hash map and hash tablethe
Reference No:- TGS0311003

Expected delivery within 24 Hours