• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Which one is better

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

We have arraylist & LinkList which one is better in performance

thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will never understand why people ask these bizarre open-ended questions :roll:

Performance at doing what task?

As an exercise for the student - your task is to go study the JavaDocs for these two classes. Look at the functionality in each one and decide for yourself which class is suitable for your particular problem. If both will handle your job, examine the API (and if necessary, the source code) to determine which class does more work to accomplish its functions.

That is homework to be handed in next week.

Bill
 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I will never understand why people ask these bizarre open-ended questions



Thanks
Bill
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both are well suited for certain tasks so there is no 'better' or 'worse'. I googled and came up with the following that lists pros and cons of the various collections including the ones you mentioned. Here it is:

http://java.sun.com/docs/books/tutorial/collections/implementations/list.html
[ January 18, 2007: Message edited by: steve souza ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic