下列程序运行结果是( ) public class Demo { public static void main(String[] args) { Demo demo = new Demo(); demo.show(new Car() { public void run() { System.out.println("Jeep run"); } }); } public void show(Car c) { c.run(); } }abstract class Car { public void run() { System.out.println("car run..."); } }
A. car run
B. Jeep run
C. 无结果
D. 程序编译报错
阅读下列的程序 public class Example { public static void main(String[] args) { new Father () { public void show() { System.out.println("helloworld"); } }.show(); }}class Father { public void show() { System.out.println("hellofather"); }}下列选项中,程序的运行结果是( )·
A. hellofather
B. helloworld
C. 编译报错
D. 编译通过,运行报错
下列选项中,哪个关键字可以修饰方法内的局部变量?()
A. abstract
B. final
C. static
D. private