Tab Content
No More Results

2 Visitor Messages

  1. Thank you so much for this, really is appreciated & I find it very interesting.
  2. 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 (24)

Statistics


Total Posts
Total Posts
619
Posts Per Day
0.30
Visitor Messages
Total Messages
2
Most Recent Message
07-20-2017 03:33 PM
Total Thanks
Total Thanks
91
General Information
Last Activity
Yesterday 10:09 AM
Join Date
11-04-2015
Referrals
4

1 Friend

  1. Professor Oak Professor Oak is offline

    Extreme Donator

    Professor Oak
Showing Friends 1 to 1 of 1
Post Areas

Top Areas Of Posting


No results to display...
No results to display...
No results to display...