+ 1

What is the difference between Enumeration and enum?

15th Aug 2016, 2:50 PM
WPimpong
WPimpong - avatar
3 Answers
+ 1
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.
8th Oct 2016, 3:50 PM
Ronald
0
Enumerations are part of discrete mathematics. Now we call them enums and they are present in UML and can be represented in most OO programming languages like C# and Java.
14th Oct 2016, 9:14 PM
Pedro Carneiro Jr
Pedro Carneiro Jr - avatar
- 1
yygch
15th Aug 2016, 2:52 PM
Rabindra kumar Ram
Rabindra kumar Ram - avatar