What are the differences between HashMap and HashTable in Java?
Shathana. S.R. Answered question May 29, 2023
- HashMap is non synchronized.
- It is not-thread safe and can’t be shared between many threads without proper synchronization code.
- Hashtable is synchronized.
- It is thread-safe and can be shared with many threads.
Shathana. S.R. Answered question May 29, 2023
