Wednesday, August 24, 2005 03:44 AM
A very important difference is, that
Hashtable, which is synchronized (unlike
HashMap). Functionally, it's methods
store(java.io.OutputStream, java.lang.String) are what sets it apart from ordinary
Personally, I suggest you only use it if you need the load/store functionality. Otherwise, use
HashMap with or without synchronization (see Collections.synchronizedMap(java.util.Map)).
Oh, and by the way: this is definitely RTFM! stuff. Learn to use the API docs, it's a must if you want to consider yourself a Java programmer.