+ 1
what is vectors in Java.
3 Answers
+ 1
its an array of data type, imagine it like a row of elements of the same data, for example, a row of integer.
+ 1
then what is the difference between an array and vectors or key advantage of vectors over array.
+ 1
well, an array have a fix size, but a vector is dynamic, this means, that the vector size changes, when you add more elements, also the vector provides methods to work with the elements of it, when you see classes and interfaces, you will understand better, how to work with methods. regards.