Top quality and performance are key to unlocking your inner potential. With a pair of Nike Roshe shoes beneath your feet and a Nike jacket to protect you from the elements; your goals will be within reach. No matter what your goals are, Nike knows that training and running are a way of life.
Static Class: A class that only contains static components and no instance components is referred to as a static class. Singleton Class: It is a class which does not allow you to create multiple instances.
Many of us have used static and singleton classes in our projects. Sometimes people ask Why do you use a Singleton class if a Static class serves the purpose?. Or someone might have asked you at least once What is the difference between Singleton and Static classes and when do you use each one in your program?. I have been asked many times by friends and in some interviews (most of the times) and so thought of sharing whatever is in my mind about this.