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 are the advantages of prototyping?
Which of the following is evaluated first: a) && b) || c) !
Is atoi safe?
Describe new operator and delete operator?
Which programming language should I learn first?
What is #include cmath?
What is dynamic and static typing?
Explain "const" reference arguments in function?
Write about the local class and mention its use?
What is a rooted hierarchy?
What is the c++ programming language used for?
What is a stack? How it can be implemented?
What is the basic structure of c++ program?
When should you use global variables?
What are the uses of static class data?