Discussion :: Objects and Collections
-
Which of the following are true statements?
- The Iterator interface declares only three methods: hasNext, next and remove.
- The ListIterator interface extends both the List and Iterator interfaces.
- The ListIterator interface provides forward and backward iteration capabilities.
- The ListIterator interface provides the ability to modify the List during iteration.
- The ListIterator interface provides the ability to determine its position in the List.
Answer : Option B
Explanation :
The ListIterator interface extends the Iterator interface and declares additional methods to provide forward and backward iteration capabilities, List modification capabilities, and the ability to determine the position of the iterator in the List.
Be The First To Comment