Originally posted by Pradeep Bhat: Do enums extend java.lang.Object?
Sure, all class MUST extends java.lang.Object.
public abstract class Enum<E extends Enum<E>>extends Objectimplements Comparable<E>, SerializableThis is the common base class of all Java language enumeration types.
Java Developer, Thailand
Joined: Jul 04, 2003
Enum is new feature in Java Tiger (5.0).
Typesafe Enums This flexible object-oriented enumerated type facility allows you to create enumerated types with arbitrary methods and fields. It provides all the benefits of the Typesafe Enum pattern ("Effective Java," Item 21) without the verbosity and the error-proneness. Refer to JSR 201.