• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Storage in Collections

 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone tell me if we need to know the pros and cons of the various types of storage used in collections - ie Array storage, LinkedList etc.
I have learned the heirachy for collections off by heart and also understand what List, Map and Set does in the way of sorting items.
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rob Petterson:
Can anyone tell me if we need to know the pros and cons of the various types of storage used in collections - ie Array storage, LinkedList etc.
I have learned the heirachy for collections off by heart and also understand what List, Map and Set does in the way of sorting items.


I'd say you know what you need to pass the SCJP exam. The pros/cons questions come up more in the developers exam. For the SCJP, you need only know how to use the classes, not what benefits an ArrayList has over a Vector or vice versa.
Corey
 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those are the words I wanted to hear! Thanks Corey.
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob,
Although I don't think they will make a lot of emphasis on the pros/cons of the collections, I do think we still need to know about when to use one and not the other.
For example, we should know things like not to use sets when you have repeated elements, or use hashes when you want to access large amounts of items quickly.
Luckily, there are not very many choices and it is "relatively" easy to learn.
Eduard
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic