+1 vote
in JAVA by

What is an Iterator in Java?

1 Answer

0 votes
by

The Iterator interface is used to step through the elements of a Collection.

Iterators let you process each element of a Collection.

Iterators are a generic way to go through all the elements of a Collection no matter Define How it is organized.

Iterator is an Interface implemented a different way for every Collection.

Related questions

0 votes
+2 votes
asked May 4, 2021 in JAVA by SakshiSharma
0 votes
asked Oct 20, 2020 in JAVA by sharadyadav1986
...