What is a list iterator?

The java.util.ListIterator is an iterator for lists that allows the programmer to traverse the list in either direction (i.e. forward and or backward) and modify the list during iteration.

JAVA collection framework
What are the benefits of the Java Collections Framework? Collections framework provides flexibility, performance, and robustness.

  • Polymorphic algorithms – sorting, shuffling, reversing, binary search etc.
  • Set algebra – such as finding subsets, intersections, and unions between objects.
  • Performance – collections have much better performance compared to the older Vector and Hashtable classes with the elimination of synchronization overheads.
  • Thread-safety – when synchronization is required, wrapper implementations are provided for temporarily synchronizing existing collection objects. For J2SE 5.0 use java.util.concurrent package.
  • Immutability – when immutability is required wrapper implementations are provided for making a collection immutable.
  • Extensibility – interfaces and abstract classes provide an excellent starting point for adding functionality and features to create specialized object collections.
Tagged . Bookmark the permalink.

Leave a Reply