Which of the following can fill in the blank in this code to make it compile?

interface CanFly {

    String type = "A";

    void fly();

    ˍˍˍˍˍˍˍ  String getType() {
        return type;

A. abstract
B. public
C. default
D. It will not compile with any as interfaces cannot have non abstract methods.
E. It will compile without filling the blank.


這題是在考Java 8的新特性,也就是介面(interface)的預設(default)方法和靜態(static)方法。