This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Enum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Enum" Watch "Enum" New topic


Dharmakumar Gajendran

Joined: Feb 22, 2010
Posts: 20
What is an Enum and its usage?
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

After reading this what don't you get?

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
Dharmakumar Gajendran wrote:Can any please explain what is Enum and its usage?


Enum helps you enumerate things, like say that days in a week, countries in the world etc. A good tutorial can be found here -
I agree. Here's the link:
subject: Enum
Similar Threads
what results byte code in java
Creating SingleTON without static variables
Enum Problem
retrieve enumeration datatype into jsp
How to define constants for several classes?