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 do u mean by variable?
What is primitive array?
What is public/private protected in java?
What is the base class of all exception classes?
what are different ways in which a thread can enter the waiting state? : Java thread
Which are the two subclasses under exception class?
What is variable argument in java?
Is there any limitation of using inheritance?
What does ide stand for?
What is an association?
What is a programming object?
how to write a server program and sending the mails to the server using smtp protocol please help me
Does java runtime require a license?
What is floor math?
What are variable arguments or varargs?