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


Please Help Members By Posting Answers For Below Questions

What restrictions are placed on method overloading?

899


What are untrusted applets?

851


What is the advantage of OOP in java?

903


What are the benefits of java?

811


What is a programming object?

793


Explain the difference between abstract classes and interfaces in java?

865


Write a factorial program using recursion in java?

727


Difference between arraylist and hashset in java?

818


What do you know about the garbage collector?

888


What do you understand by private, protected and public?

765


What is the difference between compile-time polymorphism and runtime polymorphism?

790


What is oops in java?

783


What is ‘is-a ‘ relationship in java?

807


What is vector?

784


Does anyone still use java?

864