Question:

What is an Iterator ?

Answer:

The Iterator interface provides a number of methods that are able to iterate over any Collection. Each Java Collection contains the iteratormethod that returns an Iterator instance. Iterators are capable of removing elements from the underlying collection during the iteration.


Keywords:

© 2017 QuizBucket.org