permaculture playing cards*
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 Android Security Essentials Live Lessons this week in the Android 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: 19655
    
  18

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: 38045
    
  22
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Difference between ArrayList and Vector
 
Similar Threads
ArrayList vs Vector
difference between ArrayList - Vector
Difference between ArrayList and Vector
ArrayList Vector Collections Array
Array List vs Vector