Hi,
What modifiers are allowed for methods in an Interface?
thanks,
Hi friend,
Inside an interface defined constants are by default public static and final and the declared methods are public and abstract however, you may use these modifiers but if not used compiler will not generate the compilation error. So, for the method declaration the public and abstract modifiers are allowed.
For reading more about interface please go through the following link
Ads