Two Laptop Bag*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Sun Sample question #8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Sun Sample question #8" Watch "Sun Sample question #8" New topic
Author

Sun Sample question #8

Mukti Bajaj
Ranch Hand

Joined: Dec 11, 2000
Posts: 59
Hi,
SAMPLE QUESTION 8:
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
Answer: A,C
Mukti
shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
SAMPLE QUESTION 8:
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
Answer: A,C
Mukti
HI!
According to me the correct answer is only A.
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3253
    
    2
TreeSet implements SortedSet (which extends from Set). Now you should know why C is correct.
HTH,
Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new Pattern)
www.enthuware.com/jqplus


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Anytime something that has Tree in its class name, you can feel comfortable that they will be sorted. Tree's are in ascending order, like a tree.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sun Sample question #8
 
Similar Threads
urgent questions about collection
collection's
Question about Sun's sample questions
java.util ,Urgent!
Qestion about HashSet