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
how we can make a read-only class in java?
Why main() method is public, static and void in java ?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
Write a program to check string is palindrome without using loop?
Implement two stacks using a single array.
Can we override protected method in java?
How to create com object in Java?
Is vector ordered in java?
Which collection is best for sorting in java?
worst case complexities of Quick sort and Merge sort.
What is string english?
what is meant wrapper classes?
What is dynamic binding(late binding)?
What is string data?
What is the purpose of a parameter?