Monday 5 May 2014

Vector

Vector is a Dynamic Array, Where the size of the vector can grow or shrink as needed.

if the vector is structurally modified at any time after the iterator is created, in any way except through the iterator's own remove or add methods, the iterator will throw a ConcurrentModificationException.

Vector class implements the List interface. So it supports all the methods in the List interface.

Vector is synchronized. If a thread-safe implementation is not needed, better to use ArrayList in place of Vector.

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment