I'm a little bit new in java, and I have a doubt about array and vector
I know that a vector is an array
so why does vector exist? what are the differences between them?
Hi,
Array is a static data structure but vertor is dynamic. For example if you
declare int a[10] as array you are able to store only 0 to 9 values. When you declare the same Vector a its dynamically grow depends on your code, you can store 1 to ...etc data in that.