How many objects are created for a singleton class

Answer Posted / rajani nagandla

The Singleton is a useful Design Pattern for allowing only
one instance of your class.The Singleton's purpose is to
control object creation, limiting the number to one but
allowing the flexibility to create more objects if the
situation changes. Since there is only one Singleton
instance, any instance fields of a Singleton will occur
only once per class, just like static fields.



Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does math floor () do?

728


What are java methods?

800


What is advantage of java?

757


What differences exist between iterator and listiterator?

806


What is the difference between JDK and JVM?

860


How to use arraylist in java netbeans?

730


What is the list interface?

834


What are the methods to rectify ambiguities in the interfaces in JAVA?

823


Why pointers are not used in java?

822


Is there any case when finally will not be executed?

713


What is the difference between import java.util.date and java .util?

807


How arrays are stored in memory in java?

709


What is data and its types?

758


Is namespace same as package in java?

739


Which containers use a flowlayout as their default layout in java programming?

725