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
What does math floor () do?
What are java methods?
What is advantage of java?
What differences exist between iterator and listiterator?
What is the difference between JDK and JVM?
How to use arraylist in java netbeans?
What is the list interface?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Why pointers are not used in java?
Is there any case when finally will not be executed?
What is the difference between import java.util.date and java .util?
How arrays are stored in memory in java?
What is data and its types?
Is namespace same as package in java?
Which containers use a flowlayout as their default layout in java programming?