what are iterators in java?
In Java, Iterator is an interface available in Collection framework in java. util package. It is a Java Cursor used to iterate a collection of objects. It is used to traverse a collection object elements one by one. It is available since Java 1.2 Collection Framework.