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
Create a simple movie cataqlog with XML
Software for use with EE
Can't access variable in code behind page
ant ftp error
Move users home folders to new storage partition
Java Applet Server not starting
simple math programming question
redirecting the Notes email into custom email database (not into default Notes email database)
Thumbnail Photo on Exchange 2007
Designing Luns and datastores