Saturday, June 7, 2008

What is the difference between Vector and ArrayList ?

  • Vector is synchronized, ArrayList is not.
  • Vector is having a constructor to specify the incremental capacity. But ArrayList don't have.
  • By default Vector grows by 100% but ArrayList grows by 50% only.

No comments: