Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Core%20Java%20Interview%20Questions%20and%20Answers

Question: What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?
Answer: Vector can contain objects of different types whereas array can contain objects only of a single type.
- Vector can expand at run-time, while array length is fixed.
- Vector methods are synchronized while Array methods are not
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook