Return to site

JAVA CERTIFICATION QUESTION: Sealed class true-or-false question

=>Five statements about sealed classes, but not all of them are true

· java,ocp

Which statement is true about a sealed class? Choose one.

A. All its subtypes must be in the same package.

B. Under some conditions, it can have direct subclasses that are not listed in a permits clause.

C. The sealed class is implicitly final.

D. The sealed class is implicitly immutable.

E. The sealed class may not be instantiated directly.

#java #certificationquestion #ocp

 

 

 

 

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