What are difference between Singleton and Static class?

What are difference between Singleton and Static class?

  1. Singleton Class can extend classes and implement interfaces, while a static class cannot implement the interface.

  2. Singleton can be initialized lazily or asynchronously while a static class is generally initialized when it is first loaded.

  3. Singleton class can be extended and it’s methods can be overridden.

Leave a Reply