O'Reilly logo
  • Vidhi Shah thinks this is interesting:

private Logger() {
                // private constructor
        }
        public static class LoggerHolder {
                public static Logger logger = new Logger();
        }
        

From

Note

how this static inner class creates object in singleton manner?