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

How to retain the space of the td after hidding it in Jquery

Integrating Struts2 with Spring Security using Custom Login Form