当前位置:SCJP程序员认证考试题库

问题:

[单选]

1. import java.util.*; 
2. public class TestSet { 
3. enum Example { ONE, TWO, THREE } 
4. public static void main(String[] args) { 
5. Collection coll = new ArrayList(); 
6. coll.add(Example.THREE); 
7. coll.add(Example.THREE); 
8. coll.add(Example.THREE); 
9. coll.add(Example.TWO); 
10. coll.add(Example.TWO); 
11. coll.add(Example.ONE); 
12. Set set = new HashSet(coll); 
13. } 
14. } 
Which statement is true about the set variable on line 12?() 

A .  The set variable contains all six elements from the coll collection, and the order is guaranteed to be preserved.
B .  The set variable contains only three elements from the coll collection, and the order is guaranteed to be preserved.
C .  The set variable contains all six elements from the coil collection, but the order is NOT guaranteed to be preserved.
D .  The set variable contains only three elements from the coil collection, but the order is NOT guaranteed to be preserved.

试述科尔伯格的道德阶段理论。 简述英国学前家长参与与家长教育的主要做法和经验 交联度 .1903年出版的《教育心理学》是教育心理学诞生的标志之一。它的作者是() 桑代克。 霍尔。 哈维斯特。 何林沃斯。 电工用硅钢牌号尾部加符号(),表示在高频率下检验的, G。 T。 W。 S。

1. import java.util.*; 
2. public class TestSet { 
3. enum Example { ONE, TWO, THREE } 
4. public static void main(String[] args) { 
5. Collection coll = new ArrayList(); 
6. coll.add(Example.THREE); 
7. coll.add(Example.THREE); 
8. coll.add(Example.THREE); 
9. coll.add(Example.TWO); 
10. coll.add(Example.TWO); 
11. coll.add(Example.ONE); 
12. Set set = new HashSet(coll); 
13. } 
14. } 
Which statement is true about the set variable on line 12?() 

参考答案:

  参考解析

本题暂无解析

在线 客服