- Vector is a dynamic array, whose size can be increased, where as an array size can not be changed.
- Reserve space can be given to Vector, where as array can not.
- Vector is a Class, where as array is not.
- Vector can be stored any type of objects, where as an array can stored only homogeneous values.
- Vector implements List interface, where as an array is primitive data type.
- Vector is synchronized, where as array is not.
No comments:
Post a Comment