aspose file tools*
The moose likes Java in General and the fly likes Difference between ArrayList and Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference between ArrayList and Vector" Watch "Difference between ArrayList and Vector" New topic
Author

Difference between ArrayList and Vector

Vivek Nikam
Greenhorn

Joined: Aug 27, 2011
Posts: 5
Vector is synchronized ArrayList is not
A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent.
Apart from this any other difference?
In which situation use ArrayList and in which Vector?
Vector is faster than ArrayList or not?javascript:emoticon
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19719
    
  20

Welcome to the Ranch.

If you SearchFirst you will find several threads about the same question.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39396
    
  28
And a good place to start searching is here. the "list implementations" section will probably be the most helpful for your present question.
Vivek Nikam
Greenhorn

Joined: Aug 27, 2011
Posts: 5
Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between ArrayList and Vector