public class Singleton_lazy { static Singleton_lazy instance; // private: Kann nur intern aufgerufen werden! private Singleton_lazy(){ System.out.println("Eine Instanz von Singleton_lazy wurde erzeugt!"); } public static synchronized Singleton_lazy getInstance(){ if(instance == null) // Erste Aufruf instance = new Singleton_lazy(); return instance; // Immer } }