adspace
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 difference between equals() and == in java?
Differentiate between static and non-static methods in java.
What is the difference between break and continue statements?
What is a constructor overloading in java?
What is parsing in java?
What do you mean by an interface in java?
What is java string pool?
What is a classloader in java?
What are the differences between heap and stack memory in java?
Write a program to find the whether a number is an Armstrong number or not?
Is minecraft 1.15 out?
What is an object in java and how is it created?
How to create a base64 decoder in java8?
Realized?
How to sort array in descending order in java?