Difference between HashMap and HashTable?


HashMap
  •     HashMap is a class in collection frame work. 
  •     Object of HashMap are not synchronized by default 
  •     HashMap allows null key and null values   

 HashTable
    
  • HashTable is a legacy class which was reengineered as collection frame work class.  
  •     Object of HashTable are synchronized by default
  •     HashTable doesn’t allow null key and null values.