Jan 22

How Vector Grows in java ?

Vector’s underlying datastructure is “Resizable Array” or “Growable Array”. In Vector insertion order is also preserved Vector v1=new Vector(); Creates an empty Vector with 10 as default capacity. Vector uses the following algorithm for growing it’s size new capacity=2*current capacity … Continue reading