Difference between HashMap and HashTable

Both provide key-value access to data. The Hashtable is one of the original collection java classes
Posted by Scripts on 2022-08-15 01:33:11
License Type
License Type
Freeware
Description
Both provide key-value access to data. The Hashtable is one of the original collection classes in Java. HashMap is part of the new Collections Framework, added with Java 2, v1.2. The key difference between the two is that access to the Hashtable is synchronized on the table while access to the HashMap isn't. You can add it, but it isn't there by default.
Author

chetu_akarte

Ratings & Review
Uh oh! We couldn't find any review for this listing.
Post Review
License Type
License Type
Freeware