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 two types of polymorphism?
Which operator cannot overload?
What is rtti in c++?
How do you traverse a btree in backward in-order?
the maximum length of a character constant can be a) 2 b) 1 c) 8
What is the role of copy constructor in copying of thrown objects?
What is the benefit of learning c++?
Why Pointers are not used in C++?
What is jump statement in C++?
What is an adaptor class or wrapper class in c++?
Differentiate between realloc() and free().
What are the sizes and ranges of the basic c++ data types?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is general form of pure virtual function? Explain?
What is the difference between containment and delegation?