View Single Post
  (#3 (permalink)) Old
christiaan_se christiaan_se is offline
Member
 
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Feb 2008
Default 02-29-2008, 09:38 AM

Hi,
it depends. The synchronized is not needed to guarantee that your singleton is indeed a singleton. That's what the synchronized on the static method getInstance() is for. If your myMethod() performs something that should be thread safe, you should make it synchronized.

kind regards,
Christiaan
Reply With Quote