Return to site

JAVA CERTIFICATION QUESTION: Controlling the number of instances of a class

=>Which is the best approach: singletons, sealed classes, abstract classes, final classes, or enums?

· java,ocp

Which approach best provides for this need? Choose one.

A. Singletons

B. Sealed classes

C. Abstract classes

D. Final classes

E. Enums

#java #certificationquestion #ocp

 

 

 

·Ǝ uoᴉʇdo sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ ·uoᴉsnʅɔuoꓛ