wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes implementations question. 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 "implementations question." Watch "implementations question." New topic
Author

implementations question.

matthew meltzer
Greenhorn

Joined: Sep 08, 2012
Posts: 24

Q2: Which of these implementations are provided by the java.util package? There may be more than one answer.

(a) HashList<E>
(b) HashMap<K,V>
(c) ArraySet<E>
(d) ArrayMap<K,V>
(e) TreeMap<K,V>

Above is the question from my class using the SCJP study guide. Where is says "provided by the java.util package" does that mean the java.util.Collections package?

My answer to the above question would be "b" and "e." I just wanted to see if you guys agreed since I am not sure if I understand the question or not.
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

your answers are correct as other options are not valid java collections.

also as you wrote java.util.Collections is not a package. that is a fully qualified name of Collections class. java.util is a package.

Regards
 
wood burning stoves
 
subject: implementations question.
 
Similar Threads
Synchronization Methods
MasterExam question
EXAMLAB QUESTION - Can't understand the Answer
Collections...
Generics Problem