File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 9059

"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!