🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Design Patterns: all 10 questions

Quiz: Design Patterns · Question 10 of 10

What is a common risk of overusing Singletons?

What is a common risk of overusing Singletons?

  1. A.They use too much memory
  2. B.They act as global state, which makes code harder to test
  3. C.They cannot have methods
  4. D.They must be serialised
Answer & explanation

Correct answer: They act as global state, which makes code harder to test

Hidden global objects create hidden dependencies between classes.

Can you get the rest right without peeking?

Take the timed Quiz: Design Patterns quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →