Tagged: singleton

Java – Singleton Desing Pattern 0

Java – Singleton Desing Pattern

public class UserKatalog { private static UserKatalog instance; private static Object lock=new Object(); private UserKatalog() { System.out.println("UserKatalog singleton nesnesi olusturuldu"); } public static UserKatalog getInstance() { if(instance==null) { synchronized (lock)...