以下静态方法定义中错误的是() A: public static void sayHello(){ System.out.println("hello"); } B: public staticvoid sayHello(){ System.out.println("hello"); return; } C: public static show(String name){<br> System.out.println(name); } D: public staticboolean shiPengyou(){ return true; }
以下静态方法定义中错误的是() A: public static void sayHello(){ System.out.println("hello"); } B: public staticvoid sayHello(){ System.out.println("hello"); return; } C: public static show(String name){<br> System.out.println(name); } D: public staticboolean shiPengyou(){ return true; }
1