Hashtable vs HashMap

At the outset, both are similar in functionality (purpose) but for very small difference. Both store data in key/value pairs. There is nothing with HashMap that cannot be done with Hashtable. Following table gives the differences: Hashtable vs HashMap Hashtable HashMap Introduced with JDK 1.0 version, the starting version of Java Introduced with JDK 1.2 …

Hashtable vs HashMap Read More »