File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes about enum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "about enum " Watch "about enum " New topic

about enum

Ashish Anil Khadilkar

Joined: Jul 13, 2006
Posts: 18
Can anyone please explain me why enum is introduced in java2 ? what are the advantages ?
Thanks in advance for those who reply ...

Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

You'll find the main advantages here :

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: about enum
Similar Threads
Creating SingleTON without static variables
retrieve enumeration datatype into jsp
How to define constants for several classes?
what results byte code in java
Enum Problem