This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Will Collection class methods come in SCJP1.4 exam? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Will Collection class methods come in SCJP1.4 exam?" Watch "Will Collection class methods come in SCJP1.4 exam?" New topic
Author

Will Collection class methods come in SCJP1.4 exam?

Radha Kamesh
Ranch Hand

Joined: May 19, 2007
Posts: 33
I am preparing for the SCJP 1.4 exam and am about to give it in 4 days...
Will the exam have such questions dealing with the methods used in Collection classes...(eg: tm.put("a","Bill"),Iterator it = tm.keySet().iterator() ???


Also sun's official site says "Questions on Collections, equals, hashcode, and the Wrapper classes have been deepened, so you can expect more detailed questions on these topics"

I have not gone through any material regarding this(methods of collection classes) and need to prepare if this is the case ...

I have gone through the K&B book regarding Collections framework.Is that sufficient or is more indepth knowledge neccassary?
please help....



Eg: will such questions be asked...

What will happen when you attempt to compile and run the following code?

import java.util.*;
public class Thirsk{
public static void main(String argv[]){
Thirsk t = new Thirsk();
t.a19();
}
public void a19(){
TreeMap tm = new TreeMap();
tm.put("a","Bill");
tm.put("b","Kathy");
tm.put("c","Carl");
Iterator it = tm.keySet().iterator();
while(it.hasNext()){
System.out.print(tm.get(it.next()));
}
}
}
[ August 21, 2007: Message edited by: Radhika ]
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
I think they have been deepened but not as that deep (for 1.4). You will be asked on questions like, which of the following allows null values? which of the following doesnt not allow duplicates?

Have K&B as reference.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Radha Kamesh
Ranch Hand

Joined: May 19, 2007
Posts: 33
Thanks a lot !! I'm relieved ... and yes i am using K & B as reference

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Will Collection class methods come in SCJP1.4 exam?