How would you implement a thread-safe Singleton in Java?
You can implement thread safety by initializing the instance in the constructor of the class and using `synchronized` blocks.
Youâ€™re on the right track with synchronization, but the instance needs to be lazily initialized in a thread-safe manner.
What do you think is the issue with initializing the Singleton instance in the constructor?