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
Explain scope or life time of local variables in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
How do you use substring in java?
how would you implement a thread pool? : Java thread
What is methods and methodology?
What are the two main uses of volatile in Java?
Is null an object in java?
How can you set an applet’s height and width as a percentage?
What are annotations in java?
What is java abstraction with example?
What is difference between null and void?
What is difference between array and vector?
What is mvc in java?
why are there separate wait and sleep methods? : Java thread
What are the advantages of user defined functions?