Is singleton a bad practice?



Is singleton a bad practice?..

Answer / Virendra Sharma

"Singleton is not inherently bad, but it can become problematic if misused or overused. For example, it might lead to issues with testing, maintainability, and extensibility. Properly implemented singletons can be useful in certain scenarios.".

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can you declare a private method as static?

1 Answers   TCS,


Tell me are there implementations for sorting and searching in the java libarary?

1 Answers  


Why is logger singleton?

1 Answers  


What are abstract classes and anonymous classes?

1 Answers   Flextronics, Thomson Reuters, Virtusa,


Why arraylist is not synchronized in java example?

1 Answers  


tell me some common

2 Answers   TCS,


Can you declare an interface method static?

1 Answers  


What is string and its types?

1 Answers  


What is a void in java?

1 Answers  


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1 Answers  


What is the purpose of garbage collection in java, and when is it used?

1 Answers  


Does apple use java?

1 Answers  


Categories