Home » JAVA Programming » Interfaces » Question
  1. Which of these access specifiers can be used for an interface?
    1. private
    2. Public
    3. Protected
    4. All of above
    5. None of these
Correct Option: B

Access specifier of an interface is either public or no specifier. When no access specifier is used then default access specifier is used due to which interface is available only to other members of the package in which it is declared, when declared public it can be used by any code.



Your comments will be displayed only after manual approval.