posted 23 years ago
Hiya,
An interface cannot have a static member, according to the JLS 2nd Ed.
9.4
Note that a method declared in an interface must not be declared static, or a compile-time error occurs, because static methods cannot be abstract.
End Quote.
All methods within an interface are implicitly abstract since there is no implementation. And they are implicilty public, so you cannot declare any private methods (however, you can implement private members in the implementation).
A method declared within an interface may not be declared as final, although the implementation of the method in a class that implements the interface can be declared as being final.
Methods defined within an interface can be declared as throwing an exception.