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
Why does it take so much time to access an applet having swing components the first time?
Can we print null in java?
What is the main advantage of passing argument by reference?
What is the latest version of java?
Can this keyword be used to refer static members?
Why Java doesn’t support multiple inheritance?
What is an off by one error in java?
What is the main method java?
Can a static class have a constructor java?
How destructors are defined in java?
Give an example of use of pointers in java class.
What is a method signature java?
What is the difference between compile-time polymorphism and runtime polymorphism?
How would you format a date in java? I.e. In the ddmmyyy format?
What do you mean by order of precedence and associativity?