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 ? | 4 Yes | 0 No |
Post New Answer View All Answers
what is heap memory?
How are this() and super() used with constructors in java programming?
What are methods in java?
How many types of string data types are there?
What is Classloader in Java?
What is finalize()? Is finalize() similar to a destructor?
Which is fastest collection in java?
Is a case study a method or methodology?
What invokes a thread's run() method in java programming?
What is maximum size of arraylist in java?
What are the different ways of implementing thread? Which one is more advantageous?
What is the difference between Error, defect,fault, failure and mistake?
Can a class have a static inner class?
What is string and example?
What is the difference between @before and @beforeclass annotation?