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

问题:

[单选]

public class Yikes { 
public static void go(Long n) {System.out.println(”Long “);} 
public static void go(Short n) {System.out.println(”Short “);} 
public static void go(int n) {System.out.println(”int “);} 
public static void main(String [] args) { 
short y= 6; 
long z= 7; 
go(y); 
go(z); 
} 
} 
What is the result?() 

A .  int Long
B .  Short Long
C .  Compilation fails.
D .  An exception is thrown at runtime.

简述曲式经验的获得机制。 采煤工作面刮板输送机必须安设能发出停止和启动信号的装置,发出信号的间距不得超过(). 20M。 18M。 15M。 说话 根据《水电建设工程质量管理暂行办法》(电水农[1997[220号),监理单位对工程建设实施过程中设计与施工质量负()。 A.监督责任 。 B.直接责任 。 C.监督与控制责任 。 D.间接责任。 在活性污泥法污水处理厂污水操作工进行巡检时,发现()设施出现气泡或泡沫即属于不正常现象。 沉砂池。 气浮池。 曝气池。 二沉池。

public class Yikes { 
public static void go(Long n) {System.out.println(”Long “);} 
public static void go(Short n) {System.out.println(”Short “);} 
public static void go(int n) {System.out.println(”int “);} 
public static void main(String [] args) { 
short y= 6; 
long z= 7; 
go(y); 
go(z); 
} 
} 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服