what is the diff b/w arraylist and vector?
Answer Posted / aravind
1. Arraylist is not synchronized while vector is.
2. Arraylist has no default size while vector has a
default size of 10.
3. Arraylist don't define any increment size while vector
does.
4. Arraylist can be seen directly without any iterator
while vector requires an iterator to display all it's
content. (not very sure).
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What restrictions are placed on method overloading?
What are untrusted applets?
What is the advantage of OOP in java?
What are the benefits of java?
What is a programming object?
Explain the difference between abstract classes and interfaces in java?
Write a factorial program using recursion in java?
Difference between arraylist and hashset in java?
What do you know about the garbage collector?
What do you understand by private, protected and public?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is oops in java?
What is ‘is-a ‘ relationship in java?
What is vector?
Does anyone still use java?