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

问题:

[单选]

public class test { 
public static void add3 (Integer i) 
int val = i.intValue ( ); 
val += 3; 
i = new Integer (val); 
}
public static void main (String args [ ] )  { 
Integer  i = new Integer (0); 
add3 (i); 
system.out.printIn (i.intValue ( )  ); 
}
What is the result?()  

A .  Compilation will fail.
B .  The program prints “0”.
C .  The program prints “3”.
D .  Compilation will succeed but an exception will be thrown at line 3.

The following hints may help you stay energized, or at least() until you can make the time for rest.  get you going。 get you go。 get you went。 某市居民张三在本市永久商亭购买一箱啤酒招待朋友。在开启第三瓶啤酒时,该啤酒瓶突然爆炸,玻璃碎片当场将张三的眼睛严重击伤,其朋友李四、王五及其子张小三的脸部也受了伤。张的家人赶快将他们送往医院治疗,并迅速到出售啤酒的永久副食商亭交涉。张三因伤住院半个月,花费5000多元医疗费,其朋友李四、王五、其子张小三也各花费了不等,一个月后,张三到人民法院起诉,要求侵权者赔偿所有损失。在本案 中,张三需要证明哪些事实? 下列哪种域名后缀天生权重最高。() com。 cn。 gov.cn。 net。 《秋水》开头写“泾流之大,两涘渚崖之间,不辩牛马”目的什么? 艺术掌握

public class test { 
public static void add3 (Integer i) 
int val = i.intValue ( ); 
val += 3; 
i = new Integer (val); 
}
public static void main (String args [ ] )  { 
Integer  i = new Integer (0); 
add3 (i); 
system.out.printIn (i.intValue ( )  ); 
}
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服