1.

Difference Between Vector And Arraylist?

Answer»

Lets note down the differences:

  • All the methods of Vector is SYNCHRONIZED. But, the methods of ArrayList is not synchronized.
  • Vector is a Legacy class added in first release of JDK. ArrayList was part of JDK 1.2, when collection framework was introduced in java.
  • By default, Vector doubles the size of its array when it is re-sized internally. But, ArrayList INCREASES by half of its size when it is re-sized.

Lets note down the differences:



Discussion

No Comment Found