black

SCJP程序员认证考试

登录

单项选择题

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.

相关考题

单项选择题 public class Test {  private static int[] x;  public static void main(String[] args) {  System.out.println(x[0]);  }  }   What is the result?()

多项选择题 Whichtwoarevaliddeclarationsofafloat?()

单项选择题 // Point X  public class foo {  public static void main(String[] args) throws Exception {  jave.io.PrintWriter out = new jave.io.PrintWriter(  new jave.io.OutputStreamWriter(System.out), true); out.println(“Hello”); }  }   Which statement at Point X on line 1 is required to allow this code to compile?()

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3