mesum
技术员
帖子
75
精华
0
无忧币 253
积分 248
阅读权限 30
|
发表于:2008-6-23 21:14
标题:SCJP考试试题解析二十
<上一帖 |
下一帖>
SCJP考试试题解析二十
我的QQ号:2535279
www.javaedu.com.cn
Which two statements are true for the class java.util.TreeSet? (Choose two)
A. The elements in the collection are ordered.
B. The collection is guaranteed to be immutable.
C. The elements in the collection are guaranteed to be unique.
D. The elements in the collection are accessed using a unique key.
E. The elements in the collection are guaranteed to be synchronized
解答:A, C
点评:TreeSet类实现了Set接口。Set的特点是其中的元素惟一,选项C正确。由于采用了树形存储方式,将元素有序地组织起来,所以选项A也正确。
|
 论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币) |
|