What is the next() method of the Iterator interface?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the next() method of the Iterator interface?
Rating:
The next() method of the Iterator interface returns the next element in an iteration. It throws the NoSuchElementException if the iteration has no more elements.
Rating:
Was this information helpful?
Other articles
- What is the pollLastEntry() method of the NavigableMap interface?
- What are the data type conversions available in Java?
- What is the ceiling() method of the NavigableSet interface?
- What is the iterator() method of the NavigableSet interface?
- What is the higherKey(k) method of the NavigableMap interface?