What are difference between Singleton and Static class?
-
Singleton Class can extend classes and implement interfaces, while a static class cannot implement the interface.
-
Singleton can be initialized lazily or asynchronously while a static class is generally initialized when it is first loaded.
-
Singleton class can be extended and it’s methods can be overridden.