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 is a local class in java?
can java object be locked down for exclusive use by a given thread? : Java thread
How do you access command-line arguments within the code?
Is string is a data type?
What is diamond operator in java?
Can we call a non-static method from inside a static method?
Can we use switch statement with strings?
What language is an assembler written in?
What happens if we override only equals?
How do you initialize an arraylist in java?
What does mean in regex?
What is jvm? How its run?
What is use of functional interface in java 8? Explain
What is variable argument in java?
What is pre increment and post increment in java?