Difference between Array and vector?

Answer Posted / aishwarya

Array is static memory allocation.
& vector is dynamic memory allocation

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you do not want your class to be inherited by any other class. What would you do?

795


What is the difference between processes and threads?

778


What is hash code collision?

820


What is mnemonic in assembly language?

825


Write a program to print fibonacci series up to count 10.

712


Explain an algorithm to find depth of a binary tree.

806


What is e java?

784


What is use of functional interface in java 8? Explain

782


What is the difference between Java1.4 and Java1.5

2072


Can we declare a static variable inside a method?

758


Does hashset allow duplicates in java?

825


What is finalize()?

885


Can we use synchronized block for primitives?

836


Define reflection.

760


What do you understand by weak reference?

759