Java Singleton Pattern

  • + 1 comment

    Not quite 'the best' if you think of synchronization + serialization: http://www.journaldev.com/1377/java-singleton-design-pattern-best-practices-examples . Maybe enum could win some more points.

    (but this pattern should be avoided as much as possible)