File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Regarding Singleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regarding Singleton" Watch "Regarding Singleton" New topic
Author

Regarding Singleton

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
Hi,

Could you please tell me how many object will be created in multithreading programming for singleton.

Thanks,
Santhosh Kumar V.K
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

One*. Thats why its called a Singleton.
*Of course this is presuming you have coded it correctly


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
Hi,

Thank you for your reply, could you please tell me how to make singleton in multithreading.

Thanks,
Santhosh Kumar V.K
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

Please ShowSomeEffort and SearchFirst
This has been asked, discussed and answered numerous times.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Singleton