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

defining functions clojure

Integrating Struts2 with Spring Security using Custom Login Form