offtopic.regarding the extra post. i could not see any option to delete the post.Sorry for that.
Thank You for explanation.
We say vector is
thread safe.So how vector class was written
from your explanation what i see is each method of vector class must be synchronized but when i went through signature in javadocs i did not find synchronized keyword on method signature.