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

问题:

[单选]

public class Pass { 
public static void main(String [1 args) { 
int x 5; 
Pass p = new Pass(); 
p.doStuff(x); 
System.out.print(” main x = “+ x); 
} 
void doStuff(int x) { 
System.out.print(” doStuff x = “+ x++); 
} 
} 
What is the result?() 

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

《卡门》这部歌剧中情节最复杂、最有张力的部分是() #61623;A、第一幕。 B、第二幕。 C、第三幕。 D、第四幕。 《庄子》的艺术成就表现在什么地方? 经济全球化促进了世界市场的不断扩大和区域统一,使国际分工更加深化 改变不了事情本身,就改变我们思考事情的角度。一个人因为发生的事情所受到的伤害,不如因为他对事情的看法而受到的伤害更严重 索赔意向通知,应包括的内容有()。 索赔事件发生的时间、地点。 索赔事件的发展动态。 要求费用或工期补偿的数量。 承包人为该索赔事件付出的努力和附加开支计算。 索赔依据和理由。

public class Pass { 
public static void main(String [1 args) { 
int x 5; 
Pass p = new Pass(); 
p.doStuff(x); 
System.out.print(” main x = “+ x); 
} 
void doStuff(int x) { 
System.out.print(” doStuff x = “+ x++); 
} 
} 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服