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

what is ststic with example

1807


enlist some features of jdk.

750


what is the difference between thread and runnable types? : Java thread

780


What is sortedmap interface?

778


Which is better singleton or static class?

708


What is stringwriter?

741


What are the string methods in java?

824


What is meant by 'Class access modifiers'?

809


What happens if I remove static from main method?

770


What is array size in java?

715


What is JFC?

903


What is primitive array?

692


Why do we use predicate in java?

819


What one should take care of, while serializing the object?

678


What is a modifier?

1169