Multiple choice

What is the difference between Iterator and ListIterator in Java?

  1. ListIterator can iterate in backward direction whereas Iterator cannot.

  2. ListIterator can get index at any point while Iterator cannot.

  3. ListIterator can add a value at any point while Iterator cannot.

  4. All of the above

  5. None of these

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All the three points are the differences between iterator and ListIterator.