• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Do we need to study Collection Algorithms?

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy,

 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would behoove you to understand the differences between the major Collection classes, but it is not essential to understand the underlying implementation of said classes. For example, it would be good to understand the difference between an ArrayList and a LinkedList, but you need not worry about how an ArrayList is implemented as compared to a LinkedList.

Honestly, I would say it is more important to understand the major interfaces that these classes implement, such as List, Set, and Map.
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you get the score card after the test, one of the section against which % rating given is "Collections", If you have K&B read the chapter thorough you are sure to clear 75% if not less.
 
Chandra Vadlamani
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you get the score card after the test, one of the section against which % rating given is "Collections", If you have K&B read the chapter thorough you are sure to clear 75% if not less. This is my exam experience, ofcourse i scored 100% in collections
 
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Corey
make sure you don't confuse interfaces and the classes when answering question. It may seem very easy, but under stress you may choose Map when question is asking "Which class ..."
understand hashcode() and equals() very very very well. Know which collection to use when, iterators and enumerations. Know which collections are ordered, which are sorted, etc. I think it will help not to get confused if you know how ech collection is built (linked, hashed, tree, etc.)
I don't think you need to know any algorithms (other than how hashing works and that tree means sorted), didn't see questions on algorithms in book or mock exams.
I read K&B only, and got 100% on collections.
 
brevity is the soul of wit - shakepeare. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic