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

问题:

[单选]

class super { 
public int getLength()  {return 4;} 
} 
public class Sub extends Super { 
public long getLength() {return 5;} 
public static void main (String[]args)  { 
super sooper = new Super (); 
Sub sub = new Sub(); 
System.out.printIn( 
sooper.getLength()+ “,” + sub.getLength()   }; 
} 
What is the output?()  

A .  4, 4
B .  4, 5
C .  5, 4
D .  5, 5
E .  The code will not compile.

寒食节,亦称“禁烟节”、“冷节”、“百五节”,在夏历冬至后一百零五日,清明节前一二日。是日初为节时,禁烟火,只吃冷食。寒食节是为了纪念() 屈原。 介子推。 重耳。 狐偃。 我国目前()的机器人还是来自于国外进口。 10%。 30%。 60%。 90%。 简述法定证据制度产生的历史条件。 简述污水处理主要方式? 等成本曲线绕着它与纵轴Y的交点向外移动表明() 生产要素Y的价格下降了。 生产要素x的价格上升了。  生产要素x的价格下降了。  生产要素Y的价格上升了。

class super { 
public int getLength()  {return 4;} 
} 
public class Sub extends Super { 
public long getLength() {return 5;} 
public static void main (String[]args)  { 
super sooper = new Super (); 
Sub sub = new Sub(); 
System.out.printIn( 
sooper.getLength()+ “,” + sub.getLength()   }; 
} 
What is the output?()  

参考答案:

  参考解析

本题暂无解析

在线 客服