Tab Content
More Activity

2 Visitor Messages

  1. Thank you so much for this, really is appreciated & I find it very interesting.
  2. View Conversation
    Hey,

    To answer your question, yes the naming of an enumeration element never changes. Enumeration elements are intended to be immutable and represent constant references to a single object. You can think of an enumeration like this;

    Code:
    static final class Food {
       
        public static final Food SHARK = new Food();
    
        private Food() {
    
        }
    }
    Which is exactly this

    Code:
    enum Food {
        SHARK
        ;
    
        private Food() { //private modifier is actually implicit and not needed to ensure
                                // an object cannot be constructed outside of the class
        }
    }
    The food object is immutable, and constant so therefor it follows the uppercase conventional naming.
Showing Visitor Messages 1 to 2 of 2
About Tommy

Basic Information

Date of Birth
October 18, 1996 (21)

Statistics


Total Posts
Total Posts
582
Posts Per Day
0.81
Visitor Messages
Total Messages
2
Most Recent Message
07-20-2017 03:33 PM
Total Thanks
Total Thanks
80
General Information
Last Activity
10-19-2017 06:51 PM
Join Date
11-04-2015
Referrals
3

1 Friend

  1. Professor Oak Professor Oak is offline

    Registered Member

    Professor Oak
Showing Friends 1 to 1 of 1
Post Areas

Top Areas Of Posting