- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference between HashMap and HashTable in Java.
HashMap is non-syncronized and is not thread safe while HashTable is thread safe and is synchronized.
HashMap allows one null key and values can be null whereas HashTable doesn't allow null key or value.
HashMap is faster than HashTable.
HashMap iterator is fail-safe where HashTable iterator is not fail-safe.
HashMap extends AbstractMap class where HashTable extends Dictionary class.
Advertisements