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
Unattended Windows 7 Installation answer file not working
WMIC Get Make, Model and Serial Number
Login Script to add multiple network printers?
MS Dynamics 4.0 Outlook Configuration - Microsoft Dynamics CRM server is not available
Netapp - increased LUN volume - resized to gain space - but windows server has not picked up change - what am i Missing please
XP Mode - usb software key not working
Application user
Google apps Cname
How to connect treeview & listview or grid through Access database
Prevent users from sending emails to all users group lotus notes