Answer Posted / jayashri
by declaring the constructor as private and we have to create public static method which returns the address of single object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why singleton beans are not thread safe?
What are the differences between the design patterns and the framework?
How do you choose a design pattern?
Is singleton bean thread safe?
What are the most popular design patterns?
Contact a system development program in your organization. Research how they analyzed their SYSTEM OF INTEREST (SOI), its OPERATING ENVIRONMENT, and their respective system elements. How was this analysis reflected in the SOI architecture?
Why have we declared the instance reference volatile?
What are the most important software design patterns?
Can we use an equated value as operands for an MVC ? Reason for the same.
What is the difference between factory and strategy design pattern?
Is mvc is a design pattern?
Why should we not use singleton pattern?
Can you explain singleton pattern?
What are the 23 design patterns?
Quartus II software version 6.0 is available for which operating systems (OS)?