Java OCA OCP Practice Question 3236

Question

Consider the following code segment:

MODIFIER class SomeClass { }

Which three of the following modifiers, when replaced instead of MODIFIER, will compile cleanly?

  • a) public
  • b) protected
  • c) private
  • d) abstract
  • e) final
  • f) static


a)
d)
e)

Note

Only public, abstract, and final modifiers are permitted for an outer class; using private, protected, or static will result in a compiler error.




PreviousNext

Related