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
HP SAN drive fail
Hyperlink issues
Change LDAP log level on Snow Leopard
Microsoft VBScript runtime error '800a0009', Subscript out of range: '42'
sms gateway in asp.net
Expanding virtual disk Raid 5 on Dell Server PowerEdge 2950
Script to enable folder auditing
Best way to handle vanity urls in IIS?
Exchange ISNTEG Utility Test Results
How to determine eclipse version?