Can an interfaec be implemented outside a package. This is because we cannot specify access modifier to an interface. please answer my question
posted 13 years ago
Hi phanikumar, I think we can specify an access modifier for an interface. Only public and default access modifier are allowed for an interface. If you wish to access the interface outside the package declare it as public interface and if you do not wish to access interface outside the package then do not specify any modifier (default) while declaring it. default access modifier will only make it available to the current package.