Other than the way hashtable handles NPE, if a hashmap is synchronized using Collections framework, how does it differ in behavior from hashtable, if at all it does ?
Asked
Active
Viewed 2,666 times
0
-
Little or no difference. Why should it matter to you? – duffymo Oct 15 '13 at 16:36
1 Answers
1
There are some not essential differences, eg Hashtable has elements() method which return Enumeration. But most importantly some old classes depend on Hashtable eg javax.naming.InitialContext and you cannot substitute it with a Map which Collection.synchronizedMap returns.

Evgeniy Dorofeev
- 133,369
- 30
- 199
- 275