Which of these access specifiers can be used for an interface?
A. Public
B. Protected
C. private
D. All of the mentioned
Answer:A
Which of these access specifiers can be used for an interface?
A. Public B. Protected C. private D. All of the mentioned
Explanation: Access specifier of 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.