摘要: 1.HashMap 是Hashtable 的轻量级实现(非线程安全的实现),他们都完成了Map 接口,主要区别在于HashMap 允许空(null)键值(key),由于非线程安全,效率上可能高于Hashtable。 2.HashMap 允许将null 作为一个entry 的key 或者value,而 阅读全文
posted @ 2016-03-18 13:35 庞超SuperPang 阅读(201) 评论(0) 推荐(0) 编辑