S.No
|
ArrayList
|
Vector
|
1
|
It
is not synchronized means it’s not a thread safe and performance is high
|
It
is synchronized means it is a thread safe and performance is low
|
2
|
Whenever
ArrayList object reaches max. capacity, it will create new ArrayList object
with new capacity = (current capacity x 3/2)+1
|
Here new
capacity would be double i.e., 2 x current capacity
|
No comments:
Post a Comment