Where should we use singleton design pattern?



Where should we use singleton design pattern?..

Answer / Vikas Trivedi

The Singleton design pattern should be used when exactly one instance of a class is needed to control access to shared resources, such as database connections, logging functionalities, or configuration settings.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Design Patterns Interview Questions

What is difference between function oriented design and object oriented design?

1 Answers  


Design Facade pattern - What is its application in projects ?

1 Answers   HP,


Why is singleton bad?

1 Answers  


What are the categories in which the design patterns can be divided?

1 Answers  


What is the design pattern?

1 Answers  


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?

1 Answers   IAF,


what is the lazy design pattern?

1 Answers  


What is Architecture and what is design? Are they related?

3 Answers   Accenture, IBM,


Explain what is good design?

1 Answers  


Hi, I have 9backlogs in btech and i am 2008 passed out,am working with an MNC from past 3 years.now, am willing to do MS, will it be any problem for me?

1 Answers  


What is Color Theory?

1 Answers  


Are singletons bad?

1 Answers  


Categories