Thakur Sachin Singh wrote:
enum just like a normal class...in the enum we also define the constructor and enum constructor invoked automatically....how this is possible..becauuse in the enum we create the variable of enum type, not the object....without object how it is possible the constructor called automatically in enum.
please give me answer which satisfied me.
Thanks
Sachin Singh
Those object variables are referring the object of the corresponding enum class, all are automatically happen because, they are enums
remove the keyword enum and see!