首页 > 试题广场 >

List、Set、Map是否继承自Collection接口?

[问答题]
请判断List、Set、Map是否继承自Collection接口?
Set 和List 都继承了ConllectionSet具有与Collection完全一样的接口,因此没有任何额外的功能,不像前面有两个不同的List。实际上Set就是Collection,只 是行为不同。(这是继承与多态思想的典型应用:表现不同的行为。)Set不保存重复的元素(至于如何判断元素相同则较为负责) 
发表于 2020-04-01 18:45:50 回复(0)
List和Set继承自Collection接口,Map和Collection同级,Map是键值对映射容器
发表于 2019-08-05 12:42:59 回复(1)
List 和Set 是,Map 不是
发表于 2019-05-08 17:57:32 回复(0)
List、Set 是,Map 不是。Map是键值对映射容器,与List和Set有明显的区别,而Set存储的零散的元素且不允许有重复元素(数学中的集合也是如此),List是线性结构的容器,适用于按数值索引访问元素的情形。
发表于 2019-05-05 15:16:00 回复(0)
List Set是 Map不是
发表于 2019-04-30 19:10:37 回复(0)
List Set是 Map不是
发表于 2019-04-28 23:13:37 回复(0)
list,set继承自collection接口
发表于 2019-04-28 22:15:56 回复(0)
List和set是继承collection接口,map不是
发表于 2019-04-27 22:35:54 回复(0)
list和set都是继承collection接口,map不是
发表于 2019-04-27 17:11:56 回复(0)
list和set是map不是
发表于 2019-04-26 23:02:53 回复(0)
list和set都是继承collection接口,map是和collection同级。
发表于 2019-04-26 22:04:39 回复(0)
List Set 继承于Collection接口,Map不是
发表于 2019-04-25 20:20:32 回复(0)
List Set 继承于Collection接口,Map不是
发表于 2019-04-25 18:49:38 回复(0)
list和set是继承collection接口,map是和collection同级
发表于 2019-04-25 18:02:42 回复(0)
List Set 继承于Collection接口,Map不是
发表于 2019-04-09 12:29:26 回复(0)
List set是,map不是。
发表于 2019-01-20 23:00:56 回复(0)