What is the Difference between "vector" and "array"?
Answer Posted / kabitirtha koley
The basic difference between those two are:
1.Vector and Arraylist are grownable or shinkable where are
array is not.
2.Vector and Arraylist are implemented from List interface
where as array is a primitive data type
3.Vector is Synchrnized where as arraylist is not
4.For best performance better to use arraylist than vector
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What is a container class?
Explain the auto storage classes in c++.
What can I safely assume about the initial values of variables which are not explicitly initialized?
What is virtual table?
Should I learn c or c++ or c#?
What is a sequence in c++?
Name the implicit member functions of a class.
What are c++ manipulators?
Why can’t you call invariants() as the first line of your constructor?
How can I improve my c++ skills?
Explain data encapsulation?
Why is standard template library used?
What size is allocated to the union variable?
What is format for defining a structure?
What is a pdb file?