搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【多选题】

- list 是一个合法的集合引用 - getCollection() 返回一个合法集合的引用 哪两个是合法的()

A、for(Object o ; list)

B、for(Object o : list.iterator())

C、for(Object o : getCollection())

D、for(Iterator i = list.iterator(); i.hasNext (); )

更多“ - list 是一个合法的集合引用 - getCollection() 返回一个合法集合的引用 哪两个是合法的()”相关的问题
第1题

A、A. Collections.reverseSort(list, new MyComparator());  B、B. Collections.sort(list, new MyComparator()); list.reverse();  C、C. Collections.sort(list, new InverseComparator( new MyComparator()));  D、D. Collections.sort(list, Collections.reverseOrder( new MyComparator()));  

点击查看答案
第2题

A、public&ensp;void&ensp;addStrings(List&ensp;list)&ensp;{  B、public&ensp;void&ensp;addStrings(List<String>&ensp;list)&ensp;{  C、public&ensp;void&ensp;addStrings(List<?&ensp;super&ensp;String>&ensp;list)&ensp;{  D、public&ensp;void&ensp;addStrings(List<?&ensp;extends&ensp;String>&ensp;list)&ensp;{&ensp;&ensp;B,C  

点击查看答案
第3题

A、&ensp;the&ensp;L4TM&ensp;allow&ensp;list&ensp;overrides&ensp;the&ensp;block&ensp;list  B、&ensp;the&ensp;overlap&ensp;of&ensp;the&ensp;L4TM&ensp;allow&ensp;list&ensp;and&ensp;block&ensp;list&ensp;is&ensp;the&ensp;L4TM&ensp;grey&ensp;list  C、&ensp;the&ensp;L4TM&ensp;block&ensp;lists&ensp;override&ensp;the&ensp;allow&ensp;lists  D、&ensp;L4TM&ensp;allow&ensp;list&ensp;and&ensp;block&ensp;list&ensp;overlaps&ensp;are&ensp;not&ensp;permitted  

点击查看答案
第5题

A、&ensp;add&ensp;this&ensp;code&ensp;after&ensp;line&ensp;11:&ensp;list&ensp;=&ensp;(List)&ensp;list;  B、&ensp;change&ensp;lines&ensp;12&ensp;and&ensp;13&ensp;to:&ensp;list.add(”foo”);&ensp;list.add(”bar”);  C、&ensp;change&ensp;the&ensp;method&ensp;signature&ensp;on&ensp;line&ensp;11&ensp;to:&ensp;public&ensp;void&ensp;addStrings(List<&ensp;extends&ensp;String>&ensp;list)&ensp;{  D、&ensp;change&ensp;the&ensp;method&ensp;signature&ensp;on&ensp;line&ensp;11&ensp;to:&ensp;public&ensp;void&ensp;addStrings(List<&ensp;super&ensp;String>&ensp;list)&ensp;{  E、&ensp;No&ensp;changes&ensp;are&ensp;necessary.&ensp;This&ensp;method&ensp;compiles&ensp;without&ensp;warnings.  

点击查看答案
第7题

A、prefix-list,&ensp;route-map,&ensp;filter-list,&ensp;distribute&ensp;list  B、route-map,&ensp;filter-list,&ensp;prefix-list,&ensp;distribute-list  C、route-map,&ensp;distribute-list,&ensp;prefix-list,&ensp;filter-list  D、filter-list,&ensp;prefix&ensp;list,&ensp;route-map,&ensp;distribute&ensp;list  E、distribute&ensp;list,&ensp;prefix-list,&ensp;route-map,&ensp;fitter&ensp;list  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服