File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.

I agree. Here's the link:
subject: implementations question.
jQuery in Action, 3rd edition