Difference between HashMap and Hashtable

HashMap and Hashtable both are used to store data in key and value form. Both are using hashing technique to store unique keys. But there are many differences between HashMap and Hashtable classes that are given below. HashMap Hashtable 1) HashMap is non synchronized. It is not-thread safe and can’t be shared between many threads without … Continue reading Difference between HashMap and Hashtable