Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList Vs Array , HashSet Vs TreeSet  RSS feed

 
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: 53769
127
  • 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.
  •  
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!