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
What is pangram in java?
What is the final keyword denotes?
Define immutable object?
How many tetrahedral voids are there in bcc?
What are the files generated after using IDL to java compiler?
Explain the selection sort algorithm and state its time complexity?
What is meant by final class?
What is io stream in java?
Why java doesn’t support multiple inheritances?
What are jee technologies?
What is externalizable interface?
What do you mean by of string::valueof expression in java 8?
Which sort is best in java?
Why java is platform independent? Explain.
Which method cannot be overridden in java?