Can you explain singleton pattern?



Can you explain singleton pattern?..

Answer / Sandeep Kumar Pavaya

The Singleton pattern is a design pattern that restricts the instantiation of a class to a single instance. It provides a global point of access to this instance through a static accessor method. The goal is to ensure that only one object of a particular class gets created and to provide a centralized place for configuring and managing resources.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Design Patterns Interview Questions

What is aop design?

1 Answers  


Write the code for a singleton class?

1 Answers  


Are singletons bad?

1 Answers  


How can you conduct UX evaluation?

3 Answers  


what is the difference between the Adapter Pattern and Proxy Patterns?its seems both are almost similar?

1 Answers   RBS,


What skills do you think are necessary for a UI UX Designer?

1 Answers  


What publications based on UI UX do you read?

1 Answers  


What is the difference between UX and UI design?

1 Answers  


Is dependency injection a design pattern?

1 Answers  


What is the design pattern?

1 Answers  


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

3 Answers   Accenture, IBM,


Can we use an equated value as operands for an MVC ? Reason for the same.

1 Answers   Ness Technologies,


Categories