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 ?    5 Yes 0 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?

911


What are the 3 types of loops in java?

736


Which sorting algorithm is best in java?

754


What are the parts of methodology?

749


What is the hashcode () and equals () used for?

735


What is nullpointerexception?

768


What is array list in java?

818


What are the main uses of java?

764


What is a hashmap used for?

901


Can a string be null?

743


Can a class have more than one object?

757


What is enhanced loop in java?

748


What is java english?

687


What is an example of character?

796


What is the lifetime and scope of a variable?

766