What is the difference between Iterator and ListIterator in Java?
Here are the differences:
Iterator | ListIterator | |
Element Traverse Direction | Forward | Forward + Backward |
Type of Collections used | List, Set, Queue | List only |
Operations while traversing the collection | Remove | Add, Remove, Set |