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 declare a variable?
What is the indent key?
How many types of constructors are used in java?
Can we convert integer to string in java?
What is meant by object?
What is a string what operation can be performed out with the help of a string?
How do you do descending order in java?
What is variable in java?
Is it possible for yielded thread to get chance for its execution again ?
Explain methods specific to list interface?
Explain when noclassdeffounderror will be raised ?
What is the class in java?
What are different types of references?
Where to store local variables?
How many types of interfaces are there?