Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HashMap和Hashtable的区别比较 | Jordan Zhang随记 #14

Open
JordanHank opened this issue Feb 26, 2020 · 0 comments
Open

HashMap和Hashtable的区别比较 | Jordan Zhang随记 #14

JordanHank opened this issue Feb 26, 2020 · 0 comments

Comments

@JordanHank
Copy link
Owner

https://jordanzhang.xyz/2018/11/04/HashMap%E5%92%8CHashtable%E7%9A%84%E5%8C%BA%E5%88%AB%E6%AF%94%E8%BE%83/

Java 集合框架中主要包含的容器类除了集合(Collection),另一种就是图(Map),主要用来存储键值对,其中最常用的就是HashMap,而HashMap和早期设计的Hashtable又有许多相似之处,所以经常将二者进行比较。 HashMap和Hashtable的继承关系HashMap 继承自AbstractMap类,实现了Map、Cloneable、java.io.Serializabl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant