What does the zeroth element of the string array passed to the public static void main method contain?
A. The name of the program
B. The number of arguments
C. The first argument if one is present
题意是否可以理解为:将一个零个元素的的String数组传递给public static void main 方法会怎样?
那选项应该怎样理解呢?
谢谢指点 ...
准确点:(掉了“方法”2字)
传递给public static void main方法的string数组的第0号元素,包含什么?
也就是
public static void main(String[] agrs)
args[0]包含的是什么内容。
答案是C
不是的,是这样:
传递给public static void main的string数组的第0号元素,包含什么?
显然是 C