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 Collections 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 "Collections Question" Watch "Collections Question" New topic

Collections Question

Monisha Talwar
Ranch Hand

Joined: Feb 11, 2003
Posts: 102
Do I need to know how to add elements to the different collections.
Kathy/Berts book says the exam will emphasize on understanding when to use which collection, rather than the related methods.
I came accross the question below in a mock...Can questions like this and alike be asked in the exam.
Q. 49
What is the effect of adding the sixth element to a vector created in the following manner:
new Vector(5, 10);
(A)An IndexOutOfBounds exception is raised.
(B)The vector grows in size to a capacity of 10 elements
(C)The vector grows in size to a capacity of 15 elements
(D)Nothing, the vector will have grown when the fifth element was added
Select the most appropriate answer.

Hey! It compiles! Ship it!
Reshma Shanbhag
Ranch Hand

Joined: Sep 17, 2002
Posts: 204
Hi Monisha,
kathy is right. I gave my exam recently, and never came across any questions that asked for details regarding the methods of the collection classes. But you need to know the significance for each collection implementation and their appropriate usage.
Aslo the objectives of SCJP 1.4 for Collection framework mentions

1. Make appropriate selection of collection classes/interfaces to suit specified behavior requirements.
2. Distinguish between correct and incorrect implementations of hashcode methods.

Hope this helped you

SCJP 1.4, SCWCD 1.4
Monisha Talwar
Ranch Hand

Joined: Feb 11, 2003
Posts: 102
Thanks Reshma.
I agree. Here's the link:
subject: Collections Question
It's not a secret anymore!