OCA Java SE 8 Class Design - OCA Mock Question Class Design 5


What modifiers are assumed for all interface variables? (Choose all that apply)

  1. public
  2. protected
  3. private
  4. static
  5. final
  6. abstract


A, D, E.


Interface variables are assumed to be public static final.

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

F is incorrect because variables can never be abstract.