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
XSLT Wildcards and custom processing.
Exchange Public Folder Errorr
Windows server 2003 open licenses
DGV Error - System.IndexOutOfRangeExce
ption: Index 0 does not have a value.
free photos
htaccces more then 10 variables
Visual 2010 C++ Expess Error trying to compile source code
HP SAN drive fail
How do I add image to the lotus notes signature
ActiveSync http error 500/400--All mobile devices--