title: Why Below Code outputs 10 3 times while I created only single object
body: <p>I did not understand why below code outputs 10 3 times.</p>
  
  <pre><code>enum Enums {
      A, B, C;
      private Enums() {
          System.out.println(10);
      }
  }
  
  public class MainClass {
      public static void main(String[] args) {
          Enum en = Enums.B;
      }
  }
  </code></pre>
  
  <p>It outputs as :</p>
  
  <pre><code>10 10 10
  </code></pre>