What is the difference between hash map and hash table?

One of the major differences between HashMap and Hashtable is that HashMap is non-synchronized whereas Hashtable is synchronized , which means Hashtable is thread-safe and can be shared between multiple threads but HashMap can not be shared between multiple threads without proper synchronization.

Sizin İçin Seçtik  How much does it cost to build an astroturf pitch in Ghana?

Leave a Reply

Your email address will not be published. Required fields are marked *