Java OCA OCP Practice Question 1323

Question

Which of the following modifiers cannot be applied to an interface method?

  • A. final
  • B. default
  • C. static
  • D. abstract


A.

Note

An interface method can be abstract and not have a body, or it can be default or static and have a body.

An interface method cannot be final though, making Option A the correct answer.




PreviousNext

Related