Sail E0 Webinar
Question
Which of these access specifiers can be used for an interface?
Options:
A .  Public
B .  Protected
C .  private
D .  All of the mentioned
Answer: Option A


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.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers