what is an iteratorsome of the collection classes


What is an Iterator?

Some of the collection classes give traversal of their contents via a java.util.Iterator interface. This interface permits you to walk through a collection of objects, operating on every object in turn.

Remember when using Iterators that they have a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself whereas traversing an Iterator.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: what is an iteratorsome of the collection classes
Reference No:- TGS0310966

Expected delivery within 24 Hours