RameshBabu wrote:In our application one utility class is used in several places, now we decided to change this to singleton, but we have several lines as "MyUtilClass a = new MyUtilClass()" in through out our application, is it possible to change this class to singleton class with public constructor, so that i don't need to change the new keyword lines through out my application.
If you leave its constructor as public, the class won't be singleton anymore!