• 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

LinkedList vs ArrayList

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I learn that List interface owns LinkedList, ArrayList implementing classes, but I am not sure their diff and when to use one of them? Could someone give kind hints here? thx.
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Be careful with your use of terminology, Luco. The List interface doesn't "own" LinkedList and ArrayList - they extend List. In fact, List doesn't know anything about them. Rather, LinkedList and ArrayList know about List.
Take a look at the API spec for LinkedList and ArrayList. There is a summary at the beginning of each API spec that gives a good description of the intended use of each interface, along with highlights of strengths and weaknesses of the interfaces.
If you have any more questions, please let me know.
Corey
reply
    Bookmark Topic Watch Topic
  • New Topic