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
Can a singleton class be inherited?
When should I use stringbuffer?
java Technical questions asked by JPMC
How many bytes is double?
What does java final mean?
Do I need java on my computer?
What is sizeof () operator?
Can we access the non-final local variable, inside the local inner class?
why are there separate wait and sleep methods? : Java thread
What is a stack class in java ?
What is a ?
Explain the use of shift operator in java. Can you give some examples?
When does an object becomes eligible for garbage collection in java?
What is getclass () getname () in java?
What is the difference between the direct buffer and non-direct buffer in java?