Knute Snortum wrote:Let's pull the image out of that link. Many people are reluctant to click a link in a post.
William Codice wrote:I converted event handler class and database class to static. It seems to work
Brecht Geeraerts wrote:Just a side question for the more experienced developers among us: when you see a large code set, how do you start reading it? Top to bottom, or do you first check for specific or common red flags before reading in more detail?
I'd be interested to know... Whenever I (i.e. a beginner) see such a large code snippet, I feel lost. Not knowing where to start or what to look out for first...
Campbell Ritchie wrote:Kindly don't edit old posts after they have been replied to.
Campbell Ritchie wrote:What makes you think that double checked locking is an improvement? Double checked locking doesn't even work for all versions of Java®, though the versions with that problem are old enough to be obsolete.
If you want to create a class to be a singleton, this is what you do:
Thanks , Solved