A thread-safe Singleton can be implemented without using synchronized by leveraging the JVM's class-loading mechanism. The Bill Pugh Singleton pattern uses a static inner helper class that holds the Singleton instance. The instance is created only when the helper class is loaded, providing lazy initialization, thread safety, and high performance without explicit synchronization.
A configuration manager used throughout an application should have only one instance. Using the Bill Pugh approach ensures that the instance is created only when needed and remains thread-safe even when accessed by multiple threads simultaneously.
public class ConfigurationManager {
private ConfigurationManager() {
}
private static class Holder {
private static final ConfigurationManager
INSTANCE =
new ConfigurationManager();
}
public static ConfigurationManager
getInstance() {
return Holder.INSTANCE;
}
}A concise interview answer is: Yes, a thread-safe Singleton can be implemented without synchronization using the Bill Pugh Singleton pattern. It relies on a static inner helper class, and the JVM ensures thread-safe lazy initialization when the inner class is loaded for the first time.
Last updated: 1 November 2026
Previous question: How would you use Java 9’s module system to modularize a monolithic Java application?
Next question: Design a multi-threaded application scenario where avoiding deadlock is critical.