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

问题:

[单选]

Given the command line java Pass2 and:
public class Pass2{
public void main(String[]args){
int x=6;
Pass2 p=new Pass2();
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 . doStuffx=6 main x=6
D . doStuffx=6 mainx =7
E . doStuffx=7 mainx =6
F . doStuffx=7 mainx =7

沥青混凝土混合料面层应在基层表面喷洒封层油。 液压传动系统()能准确地表达系统和元件的结构形状、几何尺寸和装配关系。 结构原理图。 装配结构图。 职能符号图。 控制系统图。 采用粉喷桩处理软土地基时,工艺性成桩试验桩数不宜少于1根,以获取钻进速度、提升速度、搅拌、喷气压力与单位时间喷入量等参数。 桁架中内力为零的杆件称为零杆,是多余的杆件。 下列不属于《劳动法》中所调整的劳动关系的特征的是()。 劳动关系是在实现劳动过程中所发生的关系,与劳动者有着直接的联系。 劳动关系的双方当事人,一方是劳动者,另一方是提供生产资料的劳动者所在单位。 劳动关系的一方劳动者,要成为另一方即所在用人单位的成员,要遵守单位内部的劳动规则以及有关制度。 劳动关系的一方劳动者所在单位,要为劳动者提供必要的劳务报酬。

Given the command line java Pass2 and:
public class Pass2{
public void main(String[]args){
int x=6;
Pass2 p=new Pass2();
p.doStuff(x);
System.out.print("mainx="+x);
}
void doStuff(intx){
System.out.print("doStuffx="+x++);
}
}
What is the result?()

参考答案:

  参考解析

本题暂无解析

在线 客服