Singleton class is a class whose only one object can be created at a time. - To achieve this one method is that we make its constructor private and provide a static method that returns its instance.
When a Singleton class is garbage - collected and then reloaded, a new Singleton instance is created.
Liked By
Write Answer
What is Singleton class?
Join MindStick Community
You have need login or register for voting of answers or question.
Amit Singh
07-May-2011When a Singleton class is garbage - collected and then reloaded, a new Singleton instance is created.