Blogger

Delete comment from: Javarevisited

Anonymous said...

An important point to note is about garbage collection. If you want to keep memory low and efficient, a singleton can be garbage collected - as it is an object. But a static class or static method can lead to unnecessary memory usage and even memory leaks.

Sep 18, 2014, 3:19:38 PM


Posted to Difference between Singleton Pattern vs Static Class in Java? Example

Google apps
Main menu