Objective: prevent the class is created and destroied frequently, improve the performent.
public class Singleton{
private singleton(){}
private static Singleton;
public static Singleton getSingleton(){
if(singleton == null){
new singleton();
}
return Singleton;
}