5 years ago
source link: https://juejin.im/post/5c8f39586fb9a070d20f1384
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在平常的开发当中,HashMap是 我 最常用的Map类(没有之一),它支持null键和null值,是绝大部分利用键值对存取场景的首选。需要切记的一点是——HashMap不是线程安全的数据结构,所以不要在多线程场景中应用它。 通常情况下,我们使用Map的主要目

About Joyk

Aggregate valuable and interesting links.
Joyk means Joy of geeK