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.
Joined: Jul 24, 2003
I will never understand why people ask these bizarre open-ended questions
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: