Differentiate Vector and ArrayList?

Answer Posted / pallavi thakare

a)Vector is a synchronized, where as an ArrayList is not
synchronized.
b)arraylist is not leggacy,it introduce JDK 1.7,where vector is leggacy.
c)arraylist uses iterator,where vector used enumration.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is heap memory?

654


How are this() and super() used with constructors in java programming?

566


What are methods in java?

536


How many types of string data types are there?

553


What is Classloader in Java?

632






What is finalize()? Is finalize() similar to a destructor?

536


Which is fastest collection in java?

557


Is a case study a method or methodology?

461


What invokes a thread's run() method in java programming?

561


What is maximum size of arraylist in java?

490


What are the different ways of implementing thread? Which one is more advantageous?

529


What is the difference between Error, defect,fault, failure and mistake?

652


Can a class have a static inner class?

600


What is string and example?

551


What is the difference between @before and @beforeclass annotation?

528