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

问题:

[单选]

public class Pass{
public static void main(String[]args){
int x=5;
Pass p=new Pass();
p.doStuff(x);
System.out.print("mainx="+x);
}
void doStuff(intx){
System.out.print("doStuffx="+x++);
}
}
What is the result?()

A . Compilation fails.
B . An exception is thrown at runtime.
C . doStuff x=6 main x=6
D . doStuff x=5 main x=5
E . doStuff x=5 main x=6
F . doStuff x=6 main x=5

南方某市高铁新城内部一条城市主干路,全长5km,机动车道路面结构层为:4cm细粒式SBS改性沥青混凝土(Sup-13)+8cm中粒式SBS改性沥青混凝土(Sup-20)+36cm水泥稳定碎石+20cm10%灰土。本工程总工期6个月,工期为2015年3月20日至2015年9月19日。该城市主干路路面属于柔性路面,柔性路面还包括()路面。 水泥混凝土。 钢筋混凝土。 沥青贯入式。 沥青表面处治。 砌块。 梅与蜡梅的区别 简述母岩风化作用的类型及产物。 厂商每增加一单位生产要素投入所增加的生产力,是() 边际产品价值。 边际收益。 边际产品。 边际生产力。 “夫画者,成教化,助人伦。”一句出自以下哪本著作() 《林泉高致》。 《宣和画谱》。 《集古录》。 《历代名画记》。

public class Pass{
public static void main(String[]args){
int x=5;
Pass p=new Pass();
p.doStuff(x);
System.out.print("mainx="+x);
}
void doStuff(intx){
System.out.print("doStuffx="+x++);
}
}
What is the result?()

参考答案:

  参考解析

本题暂无解析

在线 客服