what is the difference between array and vector
Answers
Answered by
0
Difference between array and vector:-
Vector is a growable and shrinkable where as Array is not.
Vector implements the List interface where as array is a primitive data type
Vector is synchronized where as array is not.
The size of the array is established when the array is created. As the Vector is growable, the size changes when it grows.
Vector is a growable and shrinkable where as Array is not.
Vector implements the List interface where as array is a primitive data type
Vector is synchronized where as array is not.
The size of the array is established when the array is created. As the Vector is growable, the size changes when it grows.
Similar questions