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

What is the difference between a vector & an array list?

915


Compare Mutex and Semaphore in java.

768


What is the synonym of framework?

758


How do you write a scanner class in java?

779


Explain about fail fast iterators in java?

806


What is the dot operator?

768


Can we override tostring method in java?

727


What is time complexity java?

779


How will you initialize an Applet?

847


What are memory tables?

847


What is a heavyweight component?

762


When arithmeticexception is thrown?

811


What are different exception types exceptions available in java ?

758


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1017


What about anonymous inner classes in java?

799