Java java.util.Hashtablehas the same functionality as java.util.HashMap. Their main difference is that it Hashtableis thread safe and synchronizes, but HashMapnot. With JDK5 we have ConcurrentHashMapthat can be used for multi-threaded context. It has better performance than Hashtable. Do we have any reason to use it Hashtablein the future?
source
share