This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Singleton Class Example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Singleton Class Example" Watch "Singleton Class Example" New topic

Singleton Class Example

Kamal Ahmed
Ranch Hand

Joined: Feb 15, 2005
Posts: 91
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
Posts: 9058

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: Singleton Class Example
It's not a secret anymore!