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

问题:

[单选]

1. interface TestA { String toString(); } 
2. public class Test { 
3. public static void main(String[] args) { 
4. System.out.println(new TestA() { 
5. public String toString() { return “test”; } 
6. } 
7. } 
8. } 
What is the result?() 

A .  test
B .  null
C .  An exception is thrown at runtime.
D .  Compilation fails because of an error in line 1.
E .  Compilation fails because of an error in line 4.
F .  Compilation fails because of an error in line 5.

幼儿园音乐教学中的两种铺垫方式是()、()。 社会主义新闻事业的基本方针是坚持()。 政治家办报、群众办报。 以正面宣传为主。 以正确的舆论引导人。 为社会主义服务,为人民服务。 下列关于个人理财业务和储蓄业务区别的说法,正确的是() 个人理财业务是银行的负债业务,储蓄是向客户提供的一种服务方式。 个人理财业务中资金的运用是定向的,储蓄的资金运用是非定向的。 个人理财业务的风险一般是商业银行独立承担的,储蓄的风险是客户承担或者商业银行和客户共同承担的。 个人理财业务中客户的资产与商业银行其他资产不严格区分,储蓄财产与商业银行的财产严格区分。 以综合为视角进行铺垫的四种方式是()、借用科学探究方式的铺垫、()、借用其它艺术形式进行铺垫。 电力线只表示电场的方向。

1. interface TestA { String toString(); } 
2. public class Test { 
3. public static void main(String[] args) { 
4. System.out.println(new TestA() { 
5. public String toString() { return “test”; } 
6. } 
7. } 
8. } 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服