ArrayList or vector
ArrayList:
Vector:
- 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
Post a Comment