This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


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

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.
Monisha.


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

Joined: Sep 17, 2002
Posts: 202
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
Reshma


SCJP 1.4, SCWCD 1.4
Monisha Talwar
Ranch Hand

Joined: Feb 11, 2003
Posts: 102
Thanks Reshma.
 
wood burning stoves
 
subject: Collections Question
 
Similar Threads
Vectors
vector question HUNT
Mock Ques - John Hunt
vector
Adding an element in a Vector... ???