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

问题:

[单选]

Given a class Repetition: 
1. package utils; 
2. 
3. public class Repetition { 
4. public static String twice(String s) { return s + s; } 
5. } 
and given another class Demo: 
1. // insert code here
2. 
3. public class Demo { 
4. public static void main(String[] args) { 
5. System.out.println(twice(”pizza”)); 
6. } 
7. } 
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print“pizzapizza”?() 

A .  import utils.*;
B .  static import utils.*;
C .  import utils.Repetition.*;
D .  static import utils.Repetition. *;
E .  import utils.Repetition.twice();
F .  import static utils.Repetition.twice;
G .  static import utils.Repetition.twice;

在Flash MX中,绘制直线时,按住()键可以绘制水平线。 Alt。 Ctrl。 shift。 Ta。 气缸垫作用是()。 改变气缸容积。 防止漏气、漏水,增强密封。 改变压缩比。 以上都不对。 《武陵春》(风住尘香花已尽)的作者是()。 李煜。 柳永。 李清照。 秦观。 风力发电机组的状态可以分为四种,控制优先级别最高的是() 停机状态。 紧急停机状态。 运行状态。 待机状态。 一些保健品厂家在地方电视台做广告的时候经常会找当地人现身说法,这是利用了受传者的()。 求真心理。 求新心理。 求近心理。 求短心理。

Given a class Repetition: 
1. package utils; 
2. 
3. public class Repetition { 
4. public static String twice(String s) { return s + s; } 
5. } 
and given another class Demo: 
1. // insert code here
2. 
3. public class Demo { 
4. public static void main(String[] args) { 
5. System.out.println(twice(”pizza”)); 
6. } 
7. } 
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print“pizzapizza”?() 

参考答案:

  参考解析

本题暂无解析

在线 客服