Pregunta de entrevista de JetBrains

How would you implement a singleton pattern in Java?