單項選擇題

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?()  
 

A. Compilation fails.
B. The code runs with no output.
C. An exception is thrown at runtime.
D. The code runs, outputing a concatenated list of the arguments passed to the program.

微信掃碼免費(fèi)搜題