ArrayList or vector

ArrayList:

  • Its not thread safe-- its unsynchronized.
  • ArrayList can be traversed with Iterator Interface.
  • So Its faster compared to Vector.

Vector:

  • It is thread safe and synchronized.
  • Vector can be traversed with Enumeration--Interface

Comments

Popular posts from this blog

Spring MVC- Redirect from one controller to another

Jquery Table Inline Edititing