【单选题】现有一个HappyBirthday.java,其中的程序如下: public class demo1 { public static void mian(string[] args){ System.out.println("Happy birthday!"); } } 编译并运行后报错,请问这段代码共有几处错误?
【单选题】如果有以下程序片段: interface Some { void doSome(); } abstract class AbstractSome implements Some { public abstract void doSome(); public void doService() { System.out.println("作一些服务"); } } public class Main {...
【单选题】如果有以下程序片段: interface Some { protected void doSome(); } class SomeImpl implements Some { public void doSome() { System.out.println("作一些事"); } } public class Main { public static void main(String[] args...
【单选题】如果有以下程序片段: interface Some { void doSome(); } public class Main { public static void main(String[] args) { Some s = new Some() { public void doSome() { System.out.println("作一些事"); } public void doServi...
【单选题】如果有以下程序片段: interface Some { void doSome(); } class SomeImpl implements Some { public void doSome() { System.out.println("作一些事"); } } public class Main { public static void main(String[] args) { Some s...