P&I interview question

Implement a thread-safe Singleton class in Java.