What is an array and a vector? How they different from each
other?
Answer Posted / manjusinga
Arrays group values and permit fast access by numeric
index. Vectors are a variant of arrays that also permit
fast access by numeric index.
They differ from each other in this way.
vector can grow and shrink dynamically where as array
cannot.
vectors can be synchronised where as arrays cannot be.
vecotrs are implemented from list interface where as arrays
are primitive datatypes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you sort arraylist in descending order?
Which collection allows duplicate values in java?
How many bytes is a string java?
How does hashset work in java?
What is the difference between compare and compareto in java?
How does varargs work in java?
Which class is the superclass for all the classes?
What is the meaning of flag day?
Can I learn java in 3 months?
Which programming language is most secure?
How do you input a string in java?
What is arraylist class in java?
What is field name?
What is the difference between assignment and initialization?
What is boolean example?