网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Collection有两个子接口分别是List和Set,List集合的特点是(),Set集合的特点是()
参考答案
更多 “Collection有两个子接口分别是List和Set,List集合的特点是(),Set集合的特点是()” 相关考题
考题
欲构造ArrayList类的一个实例,此类实现List接口,下列方法正确的是______。A.ArrayList myList=new Object( );B.List myList=new ArrayList( );C.ArrayList myList=new List( );D.List myList=new List( );
考题
欲构造ArrayList类的一个实例,此类继承了List接口,下列( )方法是正确的。A.ArrayList myList=new Object();B.List myList=new ArrayList();C.ArrayList myList=new List();D.List myList=new List();
考题
Youneedtostoreelementsinacollectionthatguaranteesthatnoduplicatesarestoredandallelementscanbeaccessedinnaturalorder.Whichinterfaceprovidesthatcapability?()
A.Java.util.Map.B.Java.util.Set.C.Java.util.List.D.Java.util.StoredSet.E.Java.util.StoredMap.F.Java.util.Collection.
考题
下列关于List接口的描述中,错误的是?()
A.List接口继承自Collection接口,是单列集合B.List集合中允许出现重复的元素C.List集合存储元素是有序的,即元素的存入顺序和取出顺序一致D.List集合中所有的元素是以二叉树方式进行存储的
考题
有如下两个列表:list1=[(2),(0),(1),(8)]list2=[(2,),(0,),(1,),(8,)]那么,type(list1[0])和type(list2[0])分别是:
Aint和tupleBint和intCtuple和tupleDtuple和int
考题
设当前打开了“教师” 表文件,要列出“职称”为“教授”的教师“姓名”的命令是 ( )。A)LIST教师姓名WHERE职称=”教授”B)LIST教师姓名FOR职称=”教授”C)LIST教师姓名FOR职称SET”教授”D)LIST教师姓名WHERE职称FOR”教授”
考题
You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?() A、Java.util.Map.B、Java.util.Set.C、Java.util.List.D、Java.util.StoredSet.E、Java.util.StoredMap.F、Java.util.Collection.
考题
欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的?()A、 ArrayList myList=new Object();B、 List myList=new ArrayList();C、 ArrayList myList=new List();D、 List myList=new List();
考题
java.util.Hashable可以实现的接口有()。A、Java.util.Map.B、Java.util.List.C、Java.util.Hashable.D、Java.util.Collection.
考题
若要显示课程表中第四学期开设的课程,可使用()命令。A、LIST FOR XQ=4B、LIST WHILE XQ=4C、SET FILTER TO XQ=4(回车)LIST(回车)D、LOCA FOR XQ=4(回车)LIST(回车)
考题
java.util.HashTable可以实现的接口是()。A、Java.util.HashablE.B、Java.util.List.C、Java.util.Map.D、Java.util.Collection.
考题
Which of these statements concerning the collection interfaces are true?() A、Set extends Collection.B、All methods defined in Set are also defined in Collection.C、List extends Collection.D、All methods defined in List are also defined in Collection.E、Map extends Collection.
考题
多选题Which two interfaces provide the capability to store objects using a key-value pair?()AJava.util.Map.BJava.util.Set.CJava.util.List.DJava.util.StoredSet.EJava.util.StoredMap.FJava.util.Collection.
考题
单选题java.util.Hashable可以实现的接口是()。A
java.util.Map.B
java.util.List.C
java.util.Hashable.D
java.util.Collection.
考题
多选题Which of these statements concerning the collection interfaces are true?()ASet extends Collection.BAll methods defined in Set are also defined in Collection.CList extends Collection.DAll methods defined in List are also defined in Collection.EMap extends Collection.
考题
单选题java.util.Hashable可以实现的接口有()。A
Java.util.Map.B
Java.util.List.C
Java.util.Hashable.D
Java.util.Collection.
考题
单选题You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?()A
Java.util.Map.B
Java.util.Set.C
Java.util.List.D
Java.util.StoredSet.E
Java.util.StoredMap.F
Java.util.Collection.
考题
单选题You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?()A
Java.util.Map.B
Java.util.Set.C
Java.util.List.D
Java.util.StoredSet.E
Java.util.StoredMap.F
Java.util.Collection.
热门标签
最新试卷