Recently I\'ve faced a question : How to avoid instantiating a Java class?
However, I answered by saying:
If you don\'t want to instantiate
Sometimes you only want to avoid others instantiating your objects, in order to have full control over all existing instances. One example is the singleton pattern.