Link Details

Singleton and Static Class in Java ( A class with all static methods) has couple of similarities, e.g. both can be used without creating multiple instances, but there are subtle differences between them, which makes static class suitable in certain cases, and Singleton pattern on other. This article, explores difference between Singleton and Static class in Java, to make a informed decision about, when to use Singleton or Static Class in Java.

Posted by screener  |   Mar 15 2013 / 22:53

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Recommended Links

Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone