luck, db
There are no new questions, but there may be new answers.
Rishabh Shah wrote:can you give me an example ? so, i can get better idea ....
for more visit: http://javabynataraj.blogspot.com
Rishabh Shah wrote:Thank you so much everyone...I got an idea now..Thanks a Lot !
Rishabh Shah wrote:its been written that
Singleton s1 = Singleton.getInstance();
Singleton s2 = Singleton.getInstance();
Singleton s3 = Singleton.getInstance();
it means that the object is created once only, but, it is reference by s1,s2,s3....is it so ?
Rishabh Shah wrote:its been written that
Singleton s1 = Singleton.getInstance();
Singleton s2 = Singleton.getInstance();
Singleton s3 = Singleton.getInstance();
it means that the object is created once only, but, it is reference by s1,s2,s3....is it so ?
Campbell Ritchie wrote:Agree, but beware: many people nowadays think singletons are not a good design pattern; indeed some people say "singleton antipattern".