JAVA 集合

1、Java集合分类                                                         

主要分为Set、Queue、List和Map。

https://www.cnblogs.com/fankongkong/p/6382825.html

https://www.jianshu.com/p/939b8a672070

 

 

1)说说常见的集合有哪些吧?

答:Map接口和Collection接口是所有集合框架的父接口:

* Collection接口的子接口包括:Set接口、List接口 、Queue接口;

* Map接口的实现类主要有:HashMap、TreeMap、Hashtable、ConcurrentHashMap以及Properties等

* Set接口的实现类主要有:HashSet、TreeSet、LinkedHashSet等

* List接口的实现类主要有:ArrayList、LinkedList、Stack以及Vector等

* Queue接口的实现类主要有:PriorityQueue和 LinkedList。

 

posted @ 2019-07-15 22:08  fankongkong  阅读(127)  评论(0编辑  收藏  举报