Multiple choice technology web technology

What modifiers are allowed for methods in an Interface

  1. public

  2. private

  3. abstract

  4. protected

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

Interface methods in Java are implicitly public and abstract. They cannot be private (no implementation to hide) or protected (interfaces define public contracts). Abstract is explicit but allowed since it's implicit anyway.