GIAC
GSSP-JAVA · Question #233
Which of the following statements correctly describe the features of the singleton pattern? Each correct answer represents a complete solution. Choose all that apply.
Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #233. The question stem and answer options stay visible for context.
Question
Which of the following statements correctly describe the features of the singleton pattern? Each correct answer represents a complete solution. Choose all that apply.
Options
- ASingletons are used to control object creation by limiting the number to one but allowing
- BSingletons can only be stateless, providing utility functions that need no more information
- CA singleton class may disappear if no object holds a reference to the Singleton object, and
- DThe behavior of a singleton can be obtained by static fields and methods such as
Unlock GSSP-JAVA to see the answer
You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.