What is the difference between an array and a vector ?

What is the difference between an array and a vector ?

Array have limitations:
Size fixed, Homogeneous.
While Vector is growable array, allows duplicate elements,ordered, not sorted, Accepts any number of null values. Synchronized,Heterogeneous. 
It is class of Collection interface.

By:Sumit Tripathi
Date:2020-05-15 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher