java vector example

Explain vector, time complexity and how vector grows in java

Answer: Vector & time complexity in Java: Vector is a dynamic array that grows or shrinks on run time to accommodate items during addition or deletion. Another important point is, it is synchronized. Supports both Iterator and ListIterator(provides both forward and backward traversal) which are fail-fast iterators. It allows null and duplicates values. And, also […]

Scroll to top