阅读背景:

HashTable已经被淘汰了,不要在代码中再使用它

来源:互联网 

以下描述来自于HashTable的类注释:

If a thread-safe implementation is not needed, it is recommended to use HashMap in place of Hashtable. If a thread-safe highly-concurrent implementation is desired, then it is recommended to use java.util.concurrent.ConcurrentHashMap in place of Hashtable.If a thread




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: