Difference between Array and vector?

Answer Posted / ravikiran(aptech mumbai)

Array is not growable where as vector is growable
array can hold similar type of datatype elements...where as
vector holds different datatyped objects

Is This Answer Correct ?    41 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you are given the name of the function at run time how will you invoke the function?

924


Garbage collection in java?

805


What is singleton class in java and how can we make a class singleton?

851


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

806


What is the purpose of static keyword in java?

756


What is serialversionuid?

800


What exactly is a .class file?

833


Explain the features of interfaces in java?

777


Define interface in java?

844


How can we achieve thread safety in java?

931


If system.exit (0); is written at the end of the try block, will the finally block still execute?

860


Difference between java and javascript

852


What is java in layman terms?

771


What is args length in java?

960


What is the difference between a choice and a list?

862