This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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: 924

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.

It is sorta covered in the JavaRanch Style Guide.
subject: implementations question.
It's not a secret anymore!