摘要: 1、HashTable继承Dictionary类,HashMap继承AbstractMap类。 2、HashTable的方法是同步的,而HashMap的方法不是;所以HashTable是线程安全对象,在多线程应用中可以直接使用,但是HashMap的效率比HashTable要高。 3、HashMap的 阅读全文
posted @ 2016-03-23 22:24 taste☆sky 阅读(128) 评论(0) 推荐(0) 编辑