• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collections

 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the tutorial by Sun at:

Collections
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this-:
java-collection-when-to-use-which
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very very very very mush Pranav Bhatt.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic