Intermediate Java
Q65 / 100

What is the difference between Iterator and ListIterator?

Correct! Well done.

Incorrect.

The correct answer is B) ListIterator can traverse in both directions and supports add/set; Iterator only moves forward

B

Correct Answer

ListIterator can traverse in both directions and supports add/set; Iterator only moves forward

Explanation

ListIterator extends Iterator with hasPrevious(), previous(), add(), and set(), enabling bidirectional traversal and modification.

Progress
65/100