Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Collections 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" Watch "Collections" New topic
Author

Collections

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Hi! I am studying for SCJP1.4. I get very confused at questions on Collections and Maps. Mostly I get confused on questions such as-

You want to create a list where you will need to traverse the list too often and there will be very less updation. What is the best List implementation to use.

The answer to this question I think is LinkedList. But I don't get the reason that is given to justify this. In the same way there are many such questions that I get wrong and don't even understand the reason for my wrong answer.

Can anyone tell me a good resource which could help me with this. Don't tell me to read the K&B book as I have already done that.


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sumit Bisht
Ranch Hand

Joined: Jul 02, 2008
Posts: 329

I think you are needing a good practice in Collections and Hey!, why not you try the java 5/6 certification exams?
I had a similar problem with Collections, but I overcame this confusion after a great deal of time(and lots of coding) .
If you try a lot of sources, you are bound to get further confused.So, stick to a single source and study ALL the classes in Collections HARD -there is no easy way out.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I am not giving 5 or 6 cause I don't have material for them and neither time. I am currently working on a project in a company. I want to complete my certification before the project attains pace and I have to devote all of my time to it. What if I study for 1.4 and then study Fast Track for 5.0 Upgrade exam. Can I then give the 5.0 exam???
Sandeep Bhandari
Ranch Hand

Joined: Apr 16, 2004
Posts: 201
Try the tutorial by Sun at:

Collections


SCJP 96% | SCWCD 90%| SCJP mock exams | My SCJP blog
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Any more help on how to solve the questions. I actually need a list of which implementation of Collections are suitable for which situations (if there is any such list available).
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Check this-:
java-collection-when-to-use-which
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Thank you very very very very mush Pranav Bhatt.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Collections
 
Similar Threads
Very Confused?
Question about Collection?
Weblogic 7.0 certification mock test question
Passed SCJP 1.5 with 94% :P
when return is required