File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 19693
    
  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: 38851
    
  23
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