+ 2

Write a singleton class

6th Oct 2017, 9:44 AM
Prashant Kumar
Prashant Kumar - avatar
4 Answers
+ 15
I won't write one but some people have written them before... search the code play ground for more examples. # codes below https://code.sololearn.com/cfhabtq79XoJ/?ref=app https://code.sololearn.com/c36yYDDZmK9C/?ref=app https://code.sololearn.com/cj4s7Ack4b50/?ref=app #thread about it https://www.sololearn.com/discuss/355157/?ref=app # some sites about the necessary info. https://www.javaworld.com/article/2073352/core-java/simply-singleton.html Simply Singleton | JavaWorld https://www.journaldev.com/1377/java-singleton-design-pattern-best-practices-examples Java Singleton Design Pattern Example Best Practices - JournalDev https://www.tutorialspoint.com/java/java_using_singleton.htm Java How to Use Singleton Class? - TutorialsPoint http://www.baeldung.com/java-singleton Singletons in Java | Baeldung http://www.java2novice.com/java_constructor_examples/singleton/ Java Singleton class sample code examples - Java Sample Programs https://dzone.com/articles/singleton-design-pattern-%E2%80%93 Singleton Design Pattern Tutorial – An Introspection w/ Best ... - DZone
6th Oct 2017, 11:30 AM
Lord Krishna
Lord Krishna - avatar
+ 7
a singleton class
6th Oct 2017, 11:05 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 2
lol
6th Oct 2017, 11:09 AM
Prashant Kumar
Prashant Kumar - avatar
+ 2
Thank you
6th Oct 2017, 11:33 AM
Prashant Kumar
Prashant Kumar - avatar