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 do you mean by java annotations?
What exceptions occur during serialization?
What is an iterator interface in java programming?
Will minecraft java be discontinued?
What is fail first in java?
What is package private scope in java?
Can a constructor call another constructor?
What do you mean by thread safe?
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
Is there a way to increase the size of an array after its declaration?
Explain differences between checked and unchecked exceptions in java?
Can static methods be inherited?
What is lifetime variable?
What is a loop java?
Java is pass by value or pass by reference? Explain