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
Hmailserver not receiving from Gmail and Yahoo
Error using SQL 2005 Copy Wizard
Can't open to a specified PDF page in IE 8
SQL 2008 SSIS Package Issue
connect an iPhone to Windows SBS 2003
VNC server Ubuntu 10.04
I am trying to load windows xp on a hp g71-340us laptop. The factory installed OS is windows 7 Home Premium. When the set-up disk is loading i get a Stop 0x0000007b BSOD.
How does Windows 7 detect Internet access?
How to enable/license terminal server
what is the best way to remove opachki.ru trojan?