Java OCA OCP Practice Question 1021

Question

What modifiers are assumed for all interface variables?

Choose all that apply

  • A. public
  • B. protected
  • C. private
  • D. static
  • E. final
  • F. abstract


A, D, E.

Note

Interface variables are assumed to be public static final.

Options A, D, and E are correct.

Options B and C are incorrect because interface variables must be public-interfaces are implemented by classes, not inherited by interfaces.

Option F is incorrect because variables can never be abstract.




PreviousNext

Related