Multiple choice

Which of the following methods is present in ListIterator interface in Java Collections?

  1. nextIndex()

  2. addAll()

  3. IndexOf()

  4. listIterator()

  5. subList(startindex,endindex)

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

This is the correct answer. nextIndex() method is present in the ListIterator interface in Java Collections. This method returns the index of the next element in the list to be traversed. So, this is the correct answer.