hi,
please any one explain what is the original functionality of enum keyword.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
hi,
please any one explain what is the original functionality of enum keyword.
try this
Java Programming Tutorial - 44 - Enumeration - YouTube
Sometimes it will be useful...
What did google tell you? Something like this should be the top hit, and the first place to perform research for questions such as this: Enum Types (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
Java Enum was introduced in JDK 1.5 and it is one of my favorite features on J2SE 5. Java Enum as type is more suitable on certain cases for example representing state of Order as NEW, PARTIAL FILL, FILL or CLOSED. Enum was not originally available in Java though it was available in other language like C and C++ but eventually Java realized and introduced Enum on JDK 5 (Tiger). In this Java enum tutorial we will see different examples of java enum and how to use Enum in Java. Focus of this java enum tutorial will be on different features provided by Enum in Java and how to use them. If you have used Enum before in C or C++ than you will not be uncomfortable with Java enum but in my opinion Enum in Java is more rich and versatile than in other language.
@tayloralina, please cite appropriate resources when copying text from somewhere else (that paragraph occurs in a great many online articles). The links in your signature have been removed, please do not change them back without permission.