HaspMap和HashTable的区别?HashTable和ConcurrenthashMap的区别?
HaspMap和HashTable的区别?HashTable和ConcurrenthashMap的区别?
相同点:HashMap和HasheTalbe都可以使用来储存 Key-value的数据。
区别:HashMap是可以把null作为key或者velue而HaspTable是不可以的。
HashMap是线程不安全的,因为效率较高,而HashTalbe是线程安全的,但是效率低
HaspMap和HashTable的区别?HashTable和ConcurrenthashMap的区别?
相同点:HashMap和HasheTalbe都可以使用来储存 Key-value的数据。
区别:HashMap是可以把null作为key或者velue而HaspTable是不可以的。
HashMap是线程不安全的,因为效率较高,而HashTalbe是线程安全的,但是效率低