{{theTime}}

Search This Blog

Total Pageviews

Singleton Design Pattern Java Implementation using static variable

public class SingletonClass{

private SingletonClass() { }
private static class SingletonClass {
private static final SingletonClass INSTANCE = new SingletonClass();
}

public static SingletonClass getInstance() {
return SingletonClass.INSTANCE;
}
}

No comments:

Windows 8.3 file naming setting is disabled for the product

To enable Windows 8.3 file naming setting use fsutil command Example:  c:\> fsutil 8dot3name set C: 0