aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes pls help me. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "pls help me." Watch "pls help me." New topic
Author

pls help me.

Bizwu
Greenhorn

Joined: Dec 03, 2001
Posts: 1
why answer is A? I think right answer is E(TreeSet)
because TreeSet is a class.
pls explain.thanks!

15. A ----- is a class that is a collection which cannot contain any
duplicate elements which maintains its elements in ascending order.
A.)SortedSet
B.)Set
C.)Sorted Map
D.)Collection
E.)TreeSet
Ans: A
[This message has been edited by Bizwu (edited December 03, 2001).]
Fei Ng
Ranch Hand

Joined: Aug 26, 2000
Posts: 1242
Agree.. if it is asking for a class then E) is the right answer.

15. A ----- is a class that is a collection which cannot contain any
duplicate elements which maintains its elements in ascending order.

Since TreeSet extends SortedSet which doesn't contain duplicate elements and mainatins an order. I think you are right.
david0379
Greenhorn

Joined: Dec 03, 2001
Posts: 2
if treeSet extends sortedSet,then sortedSet is superclass of treeSet,and sortedSet is class! the ans should be correct!

Originally posted by Bizwu:
why answer is A? I think right answer is E(TreeSet)
because TreeSet is a class.
pls explain.thanks!

15. A ----- is a class that is a collection which cannot contain any
duplicate elements which maintains its elements in ascending order.
A.)SortedSet
B.)Set
C.)Sorted Map
D.)Collection
E.)TreeSet
Ans: A
[This message has been edited by Bizwu (edited December 03, 2001).]

david0379
Greenhorn

Joined: Dec 03, 2001
Posts: 2
sorry,treeSet is interface not class,i think the right is e
Originally posted by Bizwu:
why answer is A? I think right answer is E(TreeSet)
because TreeSet is a class.
pls explain.thanks!

15. A ----- is a class that is a collection which cannot contain any
duplicate elements which maintains its elements in ascending order.
A.)SortedSet
B.)Set
C.)Sorted Map
D.)Collection
E.)TreeSet
Ans: A
[This message has been edited by Bizwu (edited December 03, 2001).]

Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Bizwu and david0379,
your name does not comply with the Javaranch Naming Policy. Please read it and register again.
Thank you both for your cooperation
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pls help me.