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

How do you create a first line indent?

740


What is difference between string and stringbuffer?

712


Why java does not support pointers?

782


Why does java doesnt suuport unsigned values?

1988


What is the use of StringTokenizer class?

823


What is compareto?

743


What is the effect of keeping a constructor private?

684


What is constructor chaining in java?

829


What is a prefix function.write down a code to compute prefix function.

768


What is jagged array in java?

754


Why java applets are more useful for intranets as compared to internet?

806


how we can make a read-only class in java?

756


What are internal variables?

775


What are the two ways in which thread can be created?

817


how to convert Java project into Maven ?

803