当前位置:Java认证考试综合练习题库

问题:

[单选]

class Order3 implements Runnable { 
public static void main(String [] args) { 
new Thread(new Order3()).start(); 
for(int x = 0; x 〈 10; x++) System.out.print("m");
} 
public void run() { 
for(int x = 0; x 〈 10; x++) { 
//insert code here 
System.out.print("r"); 
} 
} 
} 
和: 
当代码被编译并照此运行时产生 "before" 的输出, 当下列内容插入到代码第8行时产生"after"输出 
if (x 〉 3 && x 〈 7) Thread.yield(); 
对比“before”的输出结果和“after”的输出结果,下面哪一项是正确的?() 

A . 输出字符的总数可能改变。
B . 当添加额外的代码时,编译将失败。
C . 在“after”输出结果中,字符“m”较早出现的可能性较小。
D . 在“after”输出结果中,字符“m”较早出现的可能性较大。

ZXCTN 6130支持按照802.1ad的颜色编码模型进行编码,支持的模型不包括() 5P3D。 6P2D。 7P1D。 8P0D。 4P4D。 JDT40/75表示()。 齿柄宽度40mm。 齿头长度75mm。 固定方式为弹性卡圈。 刀型截齿。 以下有关“大部分药物从乳汁中排出的药量”的叙述中,正确的是() 不超过日摄入药量的0.5%。 不超过日摄入药量的1.0%。 不超过日摄入药量的1.5%。 不超过日摄入药量的2.0%。 不超过日摄入药量的2.5%。 在“2009中国500最具价值品牌评选”中,“国家电网”品牌名列中国500强最具价值品牌()。 第一名。 第二名。 第三名。 第四名。 如何区分床沙质、冲泻质?

class Order3 implements Runnable { 
public static void main(String [] args) { 
new Thread(new Order3()).start(); 
for(int x = 0; x 〈 10; x++) System.out.print("m");
} 
public void run() { 
for(int x = 0; x 〈 10; x++) { 
//insert code here 
System.out.print("r"); 
} 
} 
} 
和: 
当代码被编译并照此运行时产生 "before" 的输出, 当下列内容插入到代码第8行时产生"after"输出 
if (x 〉 3 && x 〈 7) Thread.yield(); 
对比“before”的输出结果和“after”的输出结果,下面哪一项是正确的?() 

参考答案:

  参考解析

本题暂无解析

在线 客服