166k views
3 votes
The ListIterator interface

a. specializes the Iterator interface to work with lists, but adds no new methods
b. adds to Iterator the ability to move backwards in the collection
c. adds to Iterator the ability to iterate over several collections, if those collections are lists
d. None of the above

User Nsds
by
5.3k points

1 Answer

4 votes

Answer:

b. adds to Iterator the ability to move backwards in the collection

Step-by-step explanation:

In Java programming, the ListIterator interface adds to Iterator the ability to be bidirectional i.e move backwards and forward in the collection and it is a sub-interface of the Iterator interface.

The ListIterator interface makes it possible to modify any list during iteration and determine its position in the list.

User Jafar Shemshadi
by
5.0k points