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
Rpc over Https
Routing and remote access VPN ip.
MS CRM Duplicate Detection rule not working
Windows XP - BSOD STOP: C000021a The windows logon process terminated unexpectedly with a status of 0x00000005 (0x00000000 0x00000000)
Changing fileserver password
Insert one field or value as another
Acrobat 9.3.2 crashes on loading - Windows 7 64B
Show Date time on webpage -coldfusion,jquery
Install IIS with a vbs script.If supporting files needed pick from a predefined path.
download linux OS