File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes simple 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 "simple enum doubt?" Watch "simple enum doubt?" New topic

simple enum doubt?

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1076 || OCJP:81%
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

That's because enums within a class behave like static inner classes.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46352
Classes in classes hardly counts as a "beginning" topic. Moving thread.
I agree. Here's the link:
subject: simple enum doubt?
It's not a secret anymore!