![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA 集合
西边的虫虫
呵呵…………
展开
-
HashMap 和 HashTable的区别
文章目录1.HashMap 和 HashTable的区别:1.HashMap 和 HashTable的区别:HashMap和Hashtable的区别。1:hashMap 是非线程安全的。效率高。hashTable 是线程安全的。效率低。HashMap是Hashtable的轻量级实现(非线程安全的实现),:2:他们都完成了Map接口主要区别在于HashMap允许空(null)键值(ke...原创 2019-11-18 08:54:18 · 233 阅读 · 0 评论 -
LIst 集合 Map 集合
文章目录1.List 集合:1.1 LinkedList 链表集合1.2 ArrayList linkedList 区别?1.3 线程安全的集合 Vector2.Map2.1 Map 集合2.1.1 HashMap阐述2.1.2 HashMap的数据结构2.2.1 key1.List 集合:List 集合: 存储的元素,有序的,可重复的。ArrayList 内部的存储原理是数...原创 2019-11-05 19:58:21 · 406 阅读 · 0 评论 -
JAVA 集合 (一)
文章目录1.集合1.1 四种体系1.2 Set集合1.2.1 HashSet1.3 Hashset 集合存储对象的原理:1.4 LinkedHashSet1.5 Tree 树1.集合Java集合类是一种特别有用的工具类,可用于存储数量不等的对象,并可以实现常用 的数据结构,如栈、队列等。除此之外,Java集合还可用于保存具有映射关系的关联 数组。Java集合大致可分为List、Set、...原创 2019-10-30 20:13:35 · 3006 阅读 · 0 评论