Difference between HashTable and HashMap

The HashTable is almost equal to HashMap except following points.
1. HashTable is synchronized, while HashMap is not.
2. HashTable doesn’t permit null as key while in HashMap it is allowed.
3. HashTable guarantee that order of the table will remain constant over time while in HashMap it is not.

Related Post

What do you know about Containers?
Creating report in java using jasper
Generating jasper report in xls
Write implementation of memcpy and memmove functions? What is the difference between the two?

Comments

Leave a Reply