Which of the following keywords can be applied to the variables or methods of an interface. A. static B. private C. synchronized D. protected E. public The mock exam's author regard A.E. as correct. But I think ACDE, because C and D can be applied to methods of an interface.
Here are the rules: For methods in an interface, they are implicitly public abstract. No other modifiers are allowed. For variables in an interface, they are implicitly public static final. No other modifiers are allowed.
[This message has been edited by Nain Hwu (edited October 19, 2001).]