当前位置:SCJP程序员认证考试题库

问题:

[单选]

public class Delta { 
static boolean foo(char c) { 
System.out.print(c); 
return true; 
} 
public static void main( String[] argv ) { 
int i =0; 
for ( foo(‘A’); foo(‘B’)&&(i<2); foo(‘C’)){ 
i++ ; 
foo(‘D’); 
} 
} 
} 
What is the result?()  

A .  ABDCBDCB
B .  ABCDABCD
C .  Compilation fails.
D .  An exception is thrown at runtime.

传染病防治法 检查软管时应注意哪些检查内容? 只有对()而言,才有所谓的证明责任。 证明标准。 证明对象。 证明事实。 证明规则。 对于能挑150斤的人,领导者既不是只让他挑100斤,也不是硬要他挑200斤,这体现了() 量才用人,职能相称。 五湖四海,宽以容人。 用人不疑,疑人不用。 扬长避短,各尽所能。 海顿在埃斯特哈齐的宫廷中工作了() 30年。 40年。 20年。 35年。

public class Delta { 
static boolean foo(char c) { 
System.out.print(c); 
return true; 
} 
public static void main( String[] argv ) { 
int i =0; 
for ( foo(‘A’); foo(‘B’)&&(i<2); foo(‘C’)){ 
i++ ; 
foo(‘D’); 
} 
} 
} 
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服