What is the differences between ArrayList and Vector? | Sololearn: Learn to code for FREE!

+7

What is the differences between ArrayList and Vector?

Collection in JAVA

1/31/2018 5:10:06 AM

ScOrPiOn

5 Answers

New Answer

+8

A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent. As the documentation says, a Vector and an ArrayList are almost equivalent. The difference is that access to a Vector is synchronized, whereas access to an ArrayList is not https://stackoverflow.com/questions/2986296/what-are-the-differences-between-arraylist-and-vector

+7

You r right

+6

Thank you SD

+6

don't say thank you.help to another three people and tell them help other three people,small help do big impact ☺

0

https://code.sololearn.com/cH2d2wY5jxfM/?ref=app