What is an Iterator class?

Iterator is an interface belongs to collection framework allow us to traverse the collection and access the data element of selection without bothering the user about specific execution of that selection it.
 
In the context of computer programming, Iteration is a process wherein a set of instructions or structures are repeated in a sequence a specified number of times or until a condition is met.
When the first set of instructions is executed again, it is called an iteration. When a sequence of instructions is executed in a repeated manner, it is called a loop.
Iteration is the repetition of a process in a computer program, usually done with the help of loops.
 
Back
Top