Microsoft
Software
Hardware
Network
Question : Java multi thread singleton
This questions is for my own future referece, please feel to comment.
Some experts suggests following thread safe singleton pattern.
public class Test {
public static getInstance(){
return SingleTest.test ;
}
private static class SingleTest{
public static Test test = new Test() ;
}
}
I have even simpler:
public class Test{
private static Test instance = new Test();
public static Test getInstance(){
return instance;
}
}
Am I right?
Answer : Java multi thread singleton
the only diff is that the later doesn't do lazy loading!
Random Solutions
DameWare vs. RDP
Outlook 2003 POP3 account continues to download duplicate messages
Just installed AJAX Toolkit - ToolkitScriptManager error -- "unknown server tag"
USB meters
How to setup network
Loosing current view settings on inbox after upgrading to Outlook 2007
Remote Desktop Services Manager snap-in hangs
horse racing racecards data feed
VBScript Replace Function & the £ symbol?
Size of integer in embedded