title: Singleton lazy vs eager instantiation
body: <p>If a singleton is implemented as follows,</p>
  
  <pre><code>class Singleton {
      private static Singleton instance = new Singleton();
  
      public static Singleton getInstance() {
          return instance;
      }
  }
  </code></pre>
  
  <p>How is this implementation different from the lazy initialization approach?
  In this case,the instance will be created when the class is loaded and the class itself is loaded only on the first active use (for example, Singleton.getInstance() not when you declare for instance Singleton singleton = null;)</p>
  
  <p>Even with lazy initialization approach, the instance is created on the call to getInstance()</p>
  
  <p>Am i missing something here?</p>