Q. What are the consequences of applying the GOF Singleton pattern?

  • (A) it introduces thread safety issue when the singleton instance is instantiated on demand
  • (B) the client code can creates multiple instances at run time
  • (C) it reduces of the class hierarchy as compared to the other factory design patterns
  • (D) it makes it easier for a certain family of objects to work together
πŸ’¬ Discuss
βœ… Correct Answer: (A) it introduces thread safety issue when the singleton instance is instantiated on demand

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
737
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate