Home > DeveloperSection > Interviews > What is a list iterator in java?

Posted on    March-26-2014 1:51 AM

 Java Java 
Ratings:
 1 Answer(s)
  875  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    March-26-2014 12:00 AM

The List and Set collections provide iterators, which are objects that allow going over all the elements of a collection in sequence. The java.util.Iterator interface provides for one-way traversal and 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.

Don't want to miss updates? Please click the below button!

Follow MindStick