Difference between Iterator and ListIterator in Java

FeaturesIteratorListIterator
Traversal of TypesCan traverse List, Set and Queue type of objectsCan traverse only List type of objects
Traversal DirectionOnly in forward directionBoth forward and backward directions
ModificationsCan only remove elements from the collectionCan perform insertions, replacements, and removal on the list
Iterate from Specified IndexCan’t iterate a list from a specified indexCan iterate a list from a specified index
MethodshasNext(), next(), remove()hasNext(), hasPrevious(), next(), previous(), nextIndex(), previousIndex(), remove(), set(), add()