Monday 2 June 2014

ArrayList Vs Vector

  1. Vector is synchronized by default, where as ArrayList is not.

  2. ArrayList is way faster than Vector. Since Vector is synchronized and thread-safe it pays price of synchronization which makes it little slow.
  1. Vector is a legacy class and initially it was not part of Java Collection Framework.
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment