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

Write a program to calculate factorial in java?

580


What is variable explain with example?

566


how to convert Java project into Maven ?

582


What are recursive functions?

571


Write a program to find the whether a number is an Armstrong number or not?

571






How java uses the string and stringbuffer classes?

511


What are the important features of Java 10 release?

508


What are access specifiers in java ?

588


What about anonymous inner classes in java?

559


What is the difference between length and length () in java?

523


What is the purpose of garbage collection in java?

651


why we use merge option in hybernate pls give a ex snippet

1453


Can we override constructors in java?

678


How strings are created in java?

560


What is java volatile?

539