What is the difference between a Vector and an Array?
What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?
Vector can contain objects of different types whereas array can contain objects only of a single type.
* Vector methods are synchronized while Array methods are not.
* Vector can expand at run-time, while array length is fixed.
Recent Comments