wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes collection mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "collection mock question" Watch "collection mock question" New topic
Author

collection mock question

sarim raza
Ranch Hand

Joined: Nov 02, 2000
Posts: 232
this is from valiveru...
Which of the following statements are true?
A. At the root of the collection hierarchy is a class called
Collection
B. The collection interface contains a method called
enumarator
C. The interator method returns an instance of the Vector
class
D. The set interface is designed for unique elements
//I LIKE A AND D
BUT DIDNT GET THIS ONE RIGHT, WHY ?

bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Collection is not a class but an Interface, so at the root of the collection hierarchy is an INTERFACE called Collection.
I got this one wrong also the first time I took this mockm, but I will remember it now. That is the nice thing about taking mocks, get it wrong once and you are pretty likely to remember it for the future.
Bill
sarim raza
Ranch Hand

Joined: Nov 02, 2000
Posts: 232
thanks again Bill, have you already passed the exam ?
your knowledge is really very impressive, if you can recommend some useful mocks that would be nice, i am appearing for the test in a week. something besides marcus!...
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
sarim, Thanks for the comments, but I still have a good bit to learn also. I am still studying for the exam. I learned most stuff through these forums and looking at the posts and going through the API or JLS or compling and running the code myself to get the answer. But I will be taking the exam soon. I want to get better at IO and AWT first.
For the mocks, go to www.javaranch.com/mock.jsp for a good list of mocks. Take as many of them as you can.
Good luck to you,
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: collection mock question
 
Similar Threads
Collections
Collections
Collection
meaning pf this code
Collection doubt