The main difference is Enumerator does not provide a standard method for for removing tehe objects. Iterator has provided method for removing the objects.
Well to start off with there is no class/interface in java called as Enumerator. Though there is Interface called Enumeration.
Iterator takes the place of Enumeration in the Java collections framework. Iterators differ from enumerations in two ways:
1) Iterators allow the caller to remove elements from the underlying collection during the iteration with well-defined semantics. 2) Method names have been improved.
I want to be myself, but a better myself.<br />~ SCJP 1.4 (91%), SCWCD 1.4 (86%) ~