Pergunta de entrevista da empresa JetBrains

How would you implement a singleton pattern in Java?