Difference between HashMap and Hash Table

Hash Table HashMap
It is one of the original collection classes in Java

Hashtable is synchronized

HashMap is fail-safe

HashMap permits null values

ie)one null key and any number of null values

It is part of the new Collections Framework, added in Java 2,v 1.2

HashMap isn’t

HashMap isn’t

Hashtable doesn’t permit null key or value



  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: