-
Which of these access specifiers can be used for an interface?
-
- private
- Public
- Protected
- All of above
- 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.