Which of the following are true statements?

  1. The 

Loading

Choose the correct option.

Which of the following are true statements?

  1. The Iterator interface declares only three methods: hasNextnext and remove.
  2. The ListIterator interface extends both the List and Iterator interfaces.
  3. The ListIterator interface provides forward and backward iteration capabilities.
  4. The ListIterator interface provides the ability to modify the List during iteration.
  5. The ListIterator interface provides the ability to determine its position in the List.

A. 2, 3, 4 and 5
B. 1, 3, 4 and 5
C. 3, 4 and 5
D. 1, 2 and 3

Leave a Comment

Notifications preferences