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
What is a singleton in genetics?
Write a java program to count the number of words present in a string?
Can we declare register variable as global?
Can we overload the main() method?
Why is singleton not thread safe?
How do weakhashmap works?
What is string in java?
Are arrays dynamic in java?
What is public static void main?
can any body body expalin best definitions & best real time exaples for opps concepts.
Is hashset ordered?
Can we instantiate interface in java?
Explain thread life cycle in java?
Why we cannot override static method?
How can you handle java exceptions?