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

问题:

[单选]

1. public class Boxer1 { 
2. Integer i; 
3. int x; 
4. public Boxer1(int y) { 
5. x=i+y; 
6. System.out.println(x); 
7. } 
8. public static void main(String[] args) { 
9. new Boxer1(new Integer(4)); 
10. } 
11. } 
What is the result?() 

A .  The value “4” is printed at the command line.
B .  Compilation fails because of an error in line 5.
C .  Compilation fails because of an error in line 9.
D .  A NullPointerException occurs at runtime.
E .  A NumberFormatException occurs at runtime.
F .  An IllegalStateException occurs at runtime.

面对经济全球化,当代大学生的爱国主义思想应树立这样的观念:() 人有地域和信仰的不同,但报效祖国之心不应有差别。 科学没有国界,但科学家有祖国。 经济全球化过程中要始终维护国家的主权和尊严。 经济全球化更要高举民族主义和大国沙文主义的旗帜。 以下属于房地产投资系统风险的是()。 通货膨胀。 经营管理不善。 决策失误。 财务欠债过多。 简述18至19世纪这一时期,秘书工作出现分支发展的具体体现。 下列各句中成语运用不当的一项是()。 成绩较差的同学,不应该妄自菲薄,甘居下游,应奋起直追。。 现在有些国家干部,不求廉洁奉公,只讲礼尚往来。。 勤能补拙的例子,在古代是不胜枚举的。。 看着他走路的样子,大家都忍俊不禁,甚至有两个笑得前仰后合。。 《琵琶记》有什么思想意义?

1. public class Boxer1 { 
2. Integer i; 
3. int x; 
4. public Boxer1(int y) { 
5. x=i+y; 
6. System.out.println(x); 
7. } 
8. public static void main(String[] args) { 
9. new Boxer1(new Integer(4)); 
10. } 
11. } 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服