Multiple choice

Which of the following methods in ListIterator class returns true if there is a next element otherwise returns false?

  1. add()

  2. hasPrevious()

  3. next()

  4. hasNext()

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

This method in ListIterator class returns true if there is a next element otherwise returns false.