You are viewing a single comment's thread. Return to all comments →
Here is My'Solution
class Singleton{ public String str; static Singleton s= new Singleton(); private Singleton(){ } public static Singleton getSingleInstance(){ return s; } }
Java Singleton Pattern
You are viewing a single comment's thread. Return to all comments →
Here is My'Solution