jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Enum doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Enum doubt" Watch "Enum doubt" New topic

Enum doubt

Abdul Mohsin
Ranch Hand

Joined: Apr 26, 2007
Posts: 111


Can anyone explain me how a simple enum class say
enum{RED,BLUE,BLACK} is compliled and converted into class file.
I was just compiling it in verbose mode and found that Enum class is loaded before Object.

Please expain it.


Abdul Mohsin

Regards, Abdul Mohsin
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
A little beyond the scope of SCJP. Moving to one of our Java in General forums...

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link: http://aspose.com/file-tools
subject: Enum doubt
It's not a secret anymore!