This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes about Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "about Collection" Watch "about Collection" New topic
Author

about Collection

zhang ying
Greenhorn

Joined: Sep 02, 2008
Posts: 2
l have tow questions(follow):
1> which Collection Type has its function that is Defines base methods for an ordered set?
A)java.util.SortedSet;
B)java util.Arrays;
C)java.util.Iterator;
D)java.util.TreeSet;
E)java.util.Collection.
2>which Collection Type has its function that is defines methods for
random access to a collection?

A)java util SortedSet;
B)java util.Arrays;
C)java.util.Iterator;
D)java.util.TreeSet;
E)java.util.Collection.
so please give me answers and tell me why?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Welcome to Javaranch Zhang...

Well the first one is A)SortedSet as it defines methods which are overriden by TreeSet which is a Sorted Set...

The second one is I think is Collection. Because rest of the options are ordered according to me....

Also whenever you post a question, you must tell from where the question is coming. This means that you must tell the name of the site or book from which this question is....


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Welcome to JavaRanch, zhang ying.

One of the rules that we have on JavaRanch is that when you copy a question from a book or mock exam, we require that you quote your sources. So, please tell us where you copied it from.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
zhang ying
Greenhorn

Joined: Sep 02, 2008
Posts: 2
l am so sorry.
But thanks for your notice.You kown: l come here frist and the rules of here l get less clearly.
The tow questions come from a book which named is<<Sun Certified Programmer for Java5>>
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

what about the correct answers...aren't they given in the book???
 
wood burning stoves
 
subject: about Collection
 
Similar Threads
T cannot be resolved to a type
Sun Sample question #8
K&B Chapter 7 Question 7
new question of ejb exam
Ethurware Query