Answer Posted / meghana
Array:
1)Size of array need to be declared in advance.
2)Once declared array can't grow in size.
3)Array can store primitive data types.like int,char,...
Vector:
1) No need to declare the size of vector. You may give its
size & you may not.
2) Vector can always grow in size if you start adding more
element to it than your declared size.
3) Vector can store only object references. Storing
primitive data types is not possible in case of vectors.
Is This Answer Correct ? | 25 Yes | 2 No |
Post New Answer View All Answers
What is the requirement of thread in java?
Which is easier netbeans or eclipse?
What is the char data type?
What is the purpose of using the java bean?
What is an iterator interface in java programming?
What are the different types of java?
Are arrays static in java?
What are exceptions
What are the advantages of java over cpp?
why Interface used?
Can a main method be declared final?
What is anagram number?
What are filterstreams?
What is namespace in java?
Why do we need hashset in java?