Lazy Singleton in Java:
[code language='java']
public class Singleton
{
private static class SingletonHolder
{
private static Singleton INSTANCE = new Singleton();
}
public static Singleton getInstance()
{
return SingletonHolder.INSTANCE;
}
}[/code]
Read more