I read somewhere a while back that you need to be careful when using Singletons. A simple piece of code to create Singelton would be:
In a threaded environment would it be better to use:
public static
synchronized Singleton getInstance() {...}
Or is this overkill? Cheers, Neil
[modified getInstance to static]
[ August 23, 2002: Message edited by: Neil Laurance ]