InterviewSolution
Saved Bookmarks
| 1. |
Which of these access specifiers can be used for an interface?(a) Public(b) Protected(c) private(d) All of the mentioned |
|
Answer» The correct answer is (a) Public Explanation: 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. |
|