多项选择题
You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide 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
点击查看答案&解析
相关考题
-
单项选择题
switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()
A. Byte
B. Long
C. Float
D. Double
E. Object
F. A and B
G. C and D -
多项选择题
1. int I=1, j=0 2. 3. switch(i) { 4. case 2: 5. j+=6; 6. 7. case 4: 8. j+=1; 9. 10. default: 11. j +=2; 12. 13. case 0: 14. j +=4; 15. } 16. What is the value of j at line 16?()
A. 0
B. 1
C. 2
D. 4
E. 6 -
单项选择题
public class WhileFoo { public static void main (String []args) { int x= 1, y = 6; while (y--) {x--;} system.out.printIn(“x=” + x “y =” + y); } } What is the result?()
A. The output is x = 6 y = 0
B. The output is x = 7 y = 0
C. The output is x = 6 y = -1
D. The output is x = 7 y = -1
E. Compilation will fail.
