SCJP考试中的一题有点疑惑!请教下大家。main方法入口中的参数
Given:
11. class Mud{
12. //insert code here
13. System.out.println("hi");
14. }
15. }
And the following five fragments:
public static void main(String...a){
public static void main(String.* a){
public static void main(String... a){
public static void main(String[]... a){
public static void main(String...[] a){
How many of the code fragments, inserted independently at line 12, compile?
A. 0
B. 1
C. 2
D. 3
E. 4
F. 5
答案:D
----------------------------------------------------------------------------------
public static void main(String...a){
public static void main(String... a){
这两个可以。还有哪个行!?我觉得是C啊。