nerdexam
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)
  • A
    11% (6)
  • B
    7% (4)
  • C
    80% (43)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice