Monday, January 16, 2012



                     Vector Class in J2SE


  • It extends AbstractList, which is also a class in java.
  • It implements List, RandomAccess, Cloneable, Serializable, these are interfaces in java.
  • Like an array, it contains components that can be accessed using an integer index. However, the size of vector can grow or shrink as needed to accomodate adding and removing items after the vector has been created.
  • Each Vector tries to optimize storage management by maintaining a capacity and a capacityIncrement.
  • Vector Size <= Capacity.