📚 Practice Mode

Test on Java Exception Handling

Learn at your own pace with hints and detailed explanations

1 / 14
Multiple Choice

Which of the following methods of Iterator class throws NoSuchElementException, if the next element does not exist?

  1. hasNext()
  2. next()
  3. remove()
  4. add()
  5. nextIndex()