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 linkedlist in java?
Can we make constructors static?
Why is singleton class used?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is the difference between stringbuffer and stringbuilder?
How thread scheduler schedule the task?
What does function identity () do?
What are the two types of java programming?
Can we assign the reference to this variable?
What is use of set in java?
What does sprintf mean?
Explain about narrowing conversion in java?
What are benefits of java?
How do you write a conditional statement?
How do you compare two objects?