black

SCJP程序员认证考试

登录

单项选择题

public class Alpha{ 
public static void main( string[] args ){ 
if ( args.length == 2 ) { 
if ( args.[0].equalsIgnoreCase(“-b”) ) 
System.out.println( new Boolean( args[1] )); 
} 
} 
}  
And the code is invoked by using the command: java Alpha –b TRUE  
What is the result?()  

A. true
B. null
C. false
D. Compilation fails.
E. The code runs with no output.
F. An exception is thrown at runtime.

相关考题

单项选择题 public class Alpha{  private static Character() ids;  public static void main( String[] args){  ids = new Character[args.length];  for (int i=0; iids[i] = new Character( args[i] );  System.out.print( ids[i] );  }  }  }   What is correct?()

单项选择题 11. double d = Math.random();   Which is true about d after line 11?()

单项选择题 for(inti=min;i<max;i++){System.out.println(i);}Ifminandmaxarearbitraryintegers,whatgivesthesameresult?()

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064