This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Enumerator is a Java 1.1 class that is really out of date now, though some interfaces and classes still use it. For any new code, you should use Iterator.
Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Joined: May 02, 2001
Hi Ron, Thanks for the reply.Enumerators are an older version but still they are being used and may i know whats the basic differnce between enumerators and iterators and in what way are iterators are better then Enumerators. Regards, Harjinder
Joined: Jun 06, 2002
Iterators have better (shorter) method names and are part of the Collections framework that was introduced in Java 1.2.