This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayList Vs Array , HashSet Vs TreeSet

 
Anto Telvin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

i have some doubts about the mentioned collection classes.

if we are taking about Execution Time which one is faster and why?

Is the performance of ArrayList and Vector same or which one has higher performance and why?


thanks in advance
 
Campbell Ritchie
Sheriff
Posts: 48415
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do these links help?
  • Java Tutorials about lists,
  • API for ArrayList,
  • Java Tutorial about Sets,
  • API for HashSet, and
  • API for TreeSet.
  •  
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic