Oracle
1Z0-804 · Question #25
Which two are true about Singletons?
The correct answer is C. A Singleton implements a factory method. E. Singletons can be designed to be thread-safe. See the full explanation below for the reasoning.
Question
Which two are true about Singletons?
Options
- AA Singleton must implement serializable.
- BA Singleton has only the default constructor.
- CA Singleton implements a factory method.
- DA Singleton improves a class's cohesion.
- ESingletons can be designed to be thread-safe.
How the community answered
(54 responses)- A11% (6)
- B7% (4)
- C80% (43)
- D2% (1)
Community Discussion
No community discussion yet for this question.