Which two compile?
A.
interface Compilable {
void compile();
}
B.
interface Compilable {
final void compile();
}
C.
interface Compilable {
static void compile();
}
D.
interface Compilable {
abstract void compile));
}
E.
interface Compilable {
protected abstract void compile ();
}
as it written abstract void compile)); it doesn’t compile because of “))”
Method declared in Interface is implicitly public abstract.
A, D
A, D. Interfaces can’t have static, final or anything other than public method declarations.