Submitted Questions

  • What is singleton class and how can we get it from a general class,explain with examples(progran)

    charlie harvey - http://charlieharvey.org.uk

    • Mar 29th, 2006

    Here's a version that implements double-check locking. The advantage of this is that you only synchronize your thread when it becomes necessary which improves your performance. package singleton. Its...

    Arvind

    • Dec 17th, 2005

    In computer science, the singleton design pattern is designed to restrict instantiation of a class to one (or a few) objects. This is useful when exactly one object is needed to coordinate actions acr...