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 do you create a first line indent?
What is difference between string and stringbuffer?
Why java does not support pointers?
Why does java doesnt suuport unsigned values?
What is the use of StringTokenizer class?
What is compareto?
What is the effect of keeping a constructor private?
What is constructor chaining in java?
What is a prefix function.write down a code to compute prefix function.
What is jagged array in java?
Why java applets are more useful for intranets as compared to internet?
how we can make a read-only class in java?
What are internal variables?
What are the two ways in which thread can be created?
how to convert Java project into Maven ?