Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
Pie
Posts: 49776
69
  • 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