Originally posted by Arun Kumar Gaddam: hai friends ,iam new java 5 Can any body explain me what is an Enum?
enum is a Java keyword used in defining enumerated list of constants. It also declares a class of type "enum". You can declare methods and variables too! Its also allowed to implement interfaces. Well, there is lot more that you can do with enum in Java than its counterparts in C++/C/C#! Check this link for a very good introduction and explanation http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html Its very short too! PS: By the way, enumeration means a numbered list!