已知有如下定义://Runnable.javainterface Runnable{public default void run(){System.out.println("Running");}}//Animal.javapublic class Animal implements Runnable{public void run(){System.out.println("Animal is running");}public static void main(String... args){Animal animal=new Animal();animal.run();}}
A. 编译成功,运行成功,运行结果是:Running
B. 编译成功,运行成功,运行结果是:Animal is running
C. 编译成功,运行成功,运行结果是:RunningAnimal is running
D. Animal编译失败,因为实现的Runnable接口中已经定义了run方法,导致方法定义重复
E. Animal编译成功,运行失败,因为实现的Runnable接口中已经定义了run方法,因为无法判断运行哪个run方法