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 a singleton in genetics?

837


Write a java program to count the number of words present in a string?

761


Can we declare register variable as global?

763


Can we overload the main() method?

802


Why is singleton not thread safe?

865


How do weakhashmap works?

887


What is string in java?

785


Are arrays dynamic in java?

803


What is public static void main?

829


can any body body expalin best definitions & best real time exaples for opps concepts.

2057


Is hashset ordered?

791


Can we instantiate interface in java?

931


Explain thread life cycle in java?

810


Why we cannot override static method?

796


How can you handle java exceptions?

760