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 do you mean by java annotations?

646


What exceptions occur during serialization?

716


What is an iterator interface in java programming?

632


Will minecraft java be discontinued?

781


What is fail first in java?

704






What is package private scope in java?

617


Can a constructor call another constructor?

653


What do you mean by thread safe?

640


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1755


Is there a way to increase the size of an array after its declaration?

692


Explain differences between checked and unchecked exceptions in java?

719


Can static methods be inherited?

619


What is lifetime variable?

606


What is a loop java?

664


Java is pass by value or pass by reference? Explain

637