Enum is the superclass of all enumerated types, implicitly, the same way that Object is the superclass of everything. [Enum does extend Object.]
Enumeration is an interface which is hardly used any more. It is rather like Iterator.
posted 10 years ago
Campbell Ritchie wrote:Enumeration is an interface which is hardly used any more.
BUt some class methods of javax.servlet.* and javax.servlet.http.* package returns Enumeration STILL.
Enumeration has more or less been replaced by Iterator since Java 1.2 (a LONG time ago...). The classes and interfaces in the Java EE packages that you mention were invented before that, so they (unfortunately) still use the old Enumeration interface. Sun doesn't want to change them, because that would make it incompatible with old Java programs.