
In C#, enum keyword is used to declare enumeration which consists of different types of name constants. This list is called enumerator list. Each enumeration element contains underlying type, default is int. This underlying type is used to decide how much storage should be allocated to each enumerator. Codeporting C#2Java engine uses final classes to replace enum. Although java language has enums but Codeporting converts enum to integer constant because enum appeared in java v1.5 only and before java v5 the acceptable way to translate enum is by using classes with integer constant.