what is the difference between ArrayList and Vector

Answer Posted / mohammed salim

1. Arraylist is not synchronized while vector is.
2. Arraylist has no default size while vector has a default
size of 10.

Is This Answer Correct ?    89 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a generic type?

752


What is stringreader?

700


which class is the wait() method defined in? : Java thread

707


What is the purpose of using break in each case of switch statement?

765


Is java good for beginners?

749


How to sort numbers in java without array?

731


How do you get the length of a string in java?

731


Why java does not support pointers?

769


What is static keyword?

776


How do you override a variable in java?

722


What are the advantages of defining packages in java?

729


What does || || mean in math?

695


Write a program to reverse a number in java?

782


What are different types of encoding?

820


Explain 5 io best practices?

790