Interfaces Correct Creation - Java Quiz Question


Which of the following is a correct interface?


A
interface A { void print() { }; }
B
abstract interface A { print(); }
C
abstract interface A { abstract void print() { }; }
D
interface A { void print(); }
E
None of the above