- Trending Categories
- Data Structure
- Operating System
- C Programming
- 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.
85 Lectures 6 hours
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.
- Difference between HashTable and HashMap in Java
- Differences between HashMap and Hashtable in Java
- What is the differences between HashMap and HashTable in Java
- Difference between HashTable and ConcurrentHashMap in Java
- Difference between HashMap and ConcurrentHashMap in Java
- Difference between EnumMap and HashMap in Java
- Difference between HashMap and HashSet in Java.
- Difference Between HashMap and TreeMap in Java
- Difference Between HashMap and LinkedHashMap in Java
- Difference between TreeMap, HashMap, and LinkedHashMap in Java
- Difference between HashMap and ConcurrentHashMap
- Difference between TreeMap, HashMap and LinkedHashMap in Java programming
- Difference between Dictionary and Hashtable in C#
- Difference between HashTable and Dictionary in C#
- Difference between Concurrent hash map and Synchronized hashmap in Java