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
Need Manual (PDF) for Canon ImageRunner C4080
exchange 2003 and ISA 2006 certificate renew - RPC-HTTPS not working
Having problems getting my VOIP setup working?
typing software that allows me to type my own text
AS3 tween multiple arrows along a path
This search script is presenting the option for Next 10 when there aren't any results. What do I need to add to not show when there aren't results?
Meta redirect question
classic asp recordset paging
sendAndLoad onHTTPStatus issue
JavaScript: Alert when checkbox value changed