首页 > 试题广场 >

下面哪些接口直接继承自Collection接口()

[不定项选择题]
下面哪些接口直接继承自Collection接口()
  • List
  • Map
  • Set
  • Iterator
发表于 2017-10-08 15:07:11 回复(15)
发表于 2017-08-17 10:15:45 回复(13)
terator()方法是java.lang.Iterable接口,被Collection继承。
其余的楼上说的很清楚了的;
发表于 2018-10-03 09:34:42 回复(1)
发表于 2019-04-26 11:58:58 回复(2)
发表于 2018-12-20 10:51:37 回复(0)
发表于 2018-02-27 20:59:36 回复(0)
Iterator接口 不继承任何接口!
Iterator接口 不继承任何接口!
Iterator接口 不继承任何接口!
发表于 2021-07-26 17:34:42 回复(0)

Collection,Iterator,Map是三种接口,而Set和List继承了Collection接口

发表于 2019-12-21 11:22:36 回复(0)
AC
Collecion所有已知子接口:
List <E> , NavigableSet <E>, Queue <E>, Set <E> , SortedSet <E>  
发表于 2017-02-12 21:45:33 回复(0)
发表于 2021-12-21 10:55:48 回复(0)
发表于 2022-07-06 13:44:01 回复(0)

13_01

13_02

发表于 2021-12-15 06:45:24 回复(1)
List:
Set:
Map:
Iterator:
发表于 2018-09-20 10:57:18 回复(0)
  • Iterator继承什么接口???
发表于 2017-08-18 10:58:41 回复(3)
ac
发表于 2017-02-12 10:33:17 回复(0)
set比较特殊,虽然底层使用的是map<key,Object>,但是它实现的是Collection接口.
Iterator是迭代器接口,和Collection算平级把

发表于 2022-09-16 11:36:05 回复(0)
Map不是继承自Collection
发表于 2020-12-29 10:39:17 回复(0)
发表于 2023-10-03 12:09:47 回复(0)
发表于 2023-04-28 17:06:56 回复(0)
Iterator迭代器类并不是collection的子类

发表于 2022-05-04 10:52:27 回复(0)