A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Programmer Certification (SCJP/OCPJP)
vishwas cheluva n
Joined: Apr 12, 2013
Jul 10, 2013 06:13:10
what is the use of singleton design
??? and wat is the difference between singleton and factory???
Joined: Sep 26, 2007
Jul 10, 2013 08:26:09
Singleton helps in ensuring that only one instance of the class exists. Factory pattern is used to create objects of the class without exposing the instantiation logic.
I agree. Here's the link:
subject: Design pattern
about default constructor
how to make single instance of a class?
Email and Design pattern
final Objects .....
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015