there is at all any difference between a Singleton class and one with all static member (ie methods and attributes )
We could not find any instance where 'all static member class' would not achieve the same functionality as class properely implementing Singleton pattern ?? For eg java.lang.Runtime is a proper Singleton class whereas java.lang.System has all static method for access and merely has a private constructor to avoid external construction . Does anybody know why classes like Runtime are made Singleton and not implemented like java.lang.System Is it merely because it would be a cleaner design (ie mimics real world more really ) or is there some performance benefit here ?? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.