black

SCJP程序员认证考试

登录

单项选择题

public class Foo { 
public void main( String[] args ) { 
System.out.println( “Hello” + args[0] ); 
} 
}  
What is the result if this code is executed with the command line?()

A. Hello
B. Hello Foo
C. Hello world
D. Compilation fails.
E. The code does not run.

相关考题

多项选择题 1. public class OuterClass {  2. private double d1 = 1.0;  3. // insert code here  4. }  Which two are valid if inserted at line 3?()

单项选择题 1. public class ReturnIt {  2. return Type methodA(byte x, double y) {  3. return (long)x / y * 2;  4. }  5. }  What is the narrowest valid returnType for methodA in line2?()

单项选择题 public class Test {  public static void main(String[] args) {  int x = 0;  assert (x > 0) ? “assertion failed” : “assertion passed”;  System.out.println(“Finished”);  }  }  What is the result?()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2