posted 16 years ago
Remember that Hashtable came first. I think that there is rarely any reason to want null values or a null key in a hash table, and so the people who made Hashtable did not allow them. But later when the collections framework was expanded, the Map interface was written to be a bit more general. Even though the need for null values and the null key is rare, some people do use them occasionally. So Map was written to allow them (optionally), and the new HashMap implmentation definitely does allow them. However they didn't want to change the existing Hashtable implementation, so they left it alone.
"I'm not back." - Bill Harding, Twister