Purpose of singletons

Posted by JayDeesus@reddit | learnprogramming | View on Reddit | 47 comments

A lot of the singleton implementations I’ve seen in Java use a static instance method to create and store a single instance which I understand the concept of but I cannot wrap my head around the idea why a singleton is beneficial. Is it not just the same thing as a class with every member being static?

From what I understand a singleton is the idea of having one instance only for the class