Difference between Array and vector?

Answer Posted / monika

array is a collection of similar data tpyes of elements.
vector is the most widely used container.it stores elements
in contiguous memory locations.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can constructor be synchronized?

529


how can i use a nonsynchronized hashtable?

2094


What is stringreader?

519


How can we achieve thread safety in java?

675


What is Java Reflection API? Why it’s so important to have?

599






Where local and global variables are stored?

537


Why are pointers not secure?

529


Why are global variables used?

492


What is final?

598


What are different data structures in java?

523


How strings are created in java?

553


What are some examples of variable costs?

484


Can a method be static?

518


Why wait and notify methods are declared in object class?

595


Does set allows null in java?

500