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 data type is a string?
List implementations of list interface?
Is list ordered in java?
What is the synonym of procedure?
Explain the importance of throwable class and its methods?
How do you format in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What methodology can be utilized to link to a database?
Does .length start 0 java?
What is boolean example?
What is meant by 'bit masking' in java?
What is the Scope of Static Variable?
Is void a wrapper class?
In the below example, how many string objects are created?
What is private protected in java?