Access specifiers which can be used for an interface are?

Stasenndb

New member
Access specifiers which can be used for an interface are?
A. Public
B. Protected
C. Private
D. All of the mentioned
 
Answer: a
Explanation: Access specifier of an interface is either public or none. When no access specifier is specified then only 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 declared anywhere in the class area.
 

Tìm kiếm

Back
Top