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.

Results 1 to 5 of 5

Thread: What is the use of enum keyword in java

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What is the use of enum keyword in java

    hi,

    please any one explain what is the original functionality of enum keyword.


  2. #2
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: What is the use of enum keyword in java

    try this
    Java Programming Tutorial - 44 - Enumeration - YouTube
    Sometimes it will be useful...

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: What is the use of enum keyword in java

    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)

  4. #4
    Junior Member
    Join Date
    Dec 2012
    Location
    United Kingdom
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: What is the use of enum keyword in java

    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.

  5. #5
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: What is the use of enum keyword in java

    @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.

Similar Threads

  1. Use of final keyword
    By vilkas in forum Exceptions
    Replies: 5
    Last Post: December 17th, 2012, 03:17 AM
  2. Uses of throws keyword
    By vilkas in forum Exceptions
    Replies: 1
    Last Post: December 11th, 2012, 03:17 AM
  3. [SOLVED] The 'new' Keyword
    By TheSlowLearner in forum Object Oriented Programming
    Replies: 17
    Last Post: August 7th, 2012, 12:05 AM
  4. Super Keyword
    By shruthi in forum Java Theory & Questions
    Replies: 12
    Last Post: October 13th, 2011, 03:31 PM
  5. keyword Extends
    By chronoz13 in forum Object Oriented Programming
    Replies: 3
    Last Post: November 27th, 2009, 07:30 AM