HashMap vs HashTable

Both the collections implements Map:
1. HashMap is not synchronized but HashTable is synchronized.
2. HashMap accepts null values and one null key whereas HashTable does not allow null key and value.

This entry was posted in Interview Questions, JAVA on by .
Rahul Thakur

About Rahul Thakur

Hi, this is Rahul working as Software Engineer at Orange Business Services. Responsible for Requirement analysis, design ,development, deployment, and testing. Working on Agile methodology and Scrum Experience on UML, OOAD, OOPS, Design patterns, Java / J2ee technologies, ORM, performance and load tests, code review and lot of SDLC activities.