This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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: 48652
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