WHAT IS THE DIFFERENCE BETWEEN ARRAYLIST AND VECTOR?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 558  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between ArrayList and Vector?

    ArrayList
    1)ArrayList is not synchronized.
    2)ArrayList is not a legacy class.
    3)ArrayList increases its size by 50% of the array size.
    Vector
    1)Vector is synchronized.
    2)Vector is a legacy class.
    3)Vector increases its size by doubling the array size.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!