title: Java enum, how and when memory allocated per constant
body: <p>I have simple enum class as given below. i want to know how memory is allocated to each constant( is Member class object is created for each constant) and what is its scope.</p>
  
  <pre><code>public enum Member {
      HAPPY("HAPPY"),RAhul("RAhul"),ANSAL("ANSAL");
      private String argument;
  
      Member(String arguments)
      {
          System.out.println("Enum Constructor work");
          this.argument = arguments;
  
      }
      public String getValue() {
          return argument;
      }
  
  }
  </code></pre>