Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Will Collection class methods come in SCJP1.4 exam?

 
Radha Kamesh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Radha Kamesh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot !! I'm relieved ... and yes i am using K & B as reference

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic