This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "implementations question." Watch "implementations question." New topic

implementations question.

matthew meltzer

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: 923

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.


OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
I agree. Here's the link:
subject: implementations question.
Similar Threads
Generics Problem
MasterExam question
EXAMLAB QUESTION - Can't understand the Answer
Synchronization Methods