Question: what is the difference between iterator and listiterator in java?
Answer: The basic difference between Iterator and ListIterator is that both being cursor, Iterator can traverse elements in a collection only in forward direction. On the other hand, the ListIterator can traverse in both forward and backward directions. ... You can retrieve an index of an element using Iterator.