Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes ArrayList Vs Array    ,    HashSet Vs TreeSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayList Vs Array    ,    HashSet Vs TreeSet" Watch "ArrayList Vs Array    ,    HashSet Vs TreeSet" New topic

ArrayList Vs Array , HashSet Vs TreeSet

Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
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

Anto Telvin Mathew<br />Many of the life failures are people who did not realize how close they were to success when they give up. EDISON
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37991
Do these links help?
  • Java Tutorials about lists,
  • API for ArrayList,
  • Java Tutorial about Sets,
  • API for HashSet, and
  • API for TreeSet.
    I agree. Here's the link:
    subject: ArrayList Vs Array , HashSet Vs TreeSet
    Similar Threads
    import pkg.* vs. import pkg.class
    ArrayList vs Vector
    ArrayList vs LinkedList?
    LinkedList Vs ArrayList
    Vector Vs ArrayList