HashMap、HashTable和currentHashMap的区别及优缺点
1.HashMap 线程不安全,所以性能高,可以通过继承collection来调用方法实现线程安全。 2.Hashtable 线程安全 3.concurrentHashMap 线程安全的,在 ...
1.HashMap 线程不安全,所以性能高,可以通过继承collection来调用方法实现线程安全。 2.Hashtable 线程安全 3.concurrentHashMap 线程安全的,在 ...