A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Singleton Class Example
Joined: Feb 15, 2005
Feb 21, 2005 08:57:00
Can someone post a simple example of a Singleton Class (With Comments please)
woudl be GREAT, if the example is of a File Server ( a Class which Servers File to a Client Socket Application , if not, it's ok too)
Thanks in advance.
Marilyn de Queiroz
Joined: Jul 22, 2000
Feb 21, 2005 09:27:00
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
It is sorta covered in the
JavaRanch Style Guide
subject: Singleton Class Example
Static reference for object
Spring Controllers singleton or not?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014