Nuacht

What's the benefit of making a private constructor and a public getInstance method? I understand why you would make the constructor private: to keep someone from instantiating a class.
In Java, nested classes are categorized as either static member classes or inner classes. Inner classes are non-static member classes, local classes, or anonymous classes.