public class Test { public static void main( String[] args) { String foo = args[1]; String bar = args[2]; String baz = args[3]; System.out.println(“baz = “ + baz); } } And the command line invocation: java Test red green blue What is the result?()
- A、 baz =
- B、 baz = null
- C、 baz = blue
- D、 Compilation fails.
- E、 An exception is thrown at runtime.
正确答案:E
答案解析:有
微信扫一扫手机做题