{{theTime}}

Search This Blog

Total Pageviews

Thread safe Singleton Design Pattern Java Implementation

public class SingletonClass{
private static SingletonClass instance = null;
private SingletonClass() { }
public static synchronized SingletonClass getInstance() {
if (instance == null) {
instance = new SingletonClass();
}
return instance;
}
}

No comments:

Cucumber Eclipse sample program

Cucumber Eclipse SetupCreate Eclipse Maven Project Open pom.xml Goto Dependencies Add GroupId: info.cukes, Artifact Id: cucumber-java, Versi...