当前位置:Java认证考试综合练习题库

问题:

[单选]

现有: 
1.  interface Animal  f     
2.    void eat();     
3.    }     
4. 
5.  // insert code here     
6. 
7. public class HouseCat implements Feline  {     
8.    public void eat()    {  }    
9.  } 
和以下三个接口声明: 
interface Feline extends Animal  (  ) 
interface Feline extends Animal  {void eat();    } 
interface Feline extends Animal  {void eat()    {  }  }  
分别插入到第5行,有多少行可以编译?   

A .   0
B .   1
C .   2
D .   3

凝土试件标准养护的条件是()。 温度(20±2)℃,相对湿度95%。 温度(20±2)℃,相对湿度90%。 温度(20±3)℃,相对湿度95%。 温度(20±3)℃,相对湿度90%。 作文批改的主要内容是什么? 什么是系统风险和非系统风险? 何为假种皮? 隧道衬砌结构中的防水层有哪些类型?

现有: 
1.  interface Animal  f     
2.    void eat();     
3.    }     
4. 
5.  // insert code here     
6. 
7. public class HouseCat implements Feline  {     
8.    public void eat()    {  }    
9.  } 
和以下三个接口声明: 
interface Feline extends Animal  (  ) 
interface Feline extends Animal  {void eat();    } 
interface Feline extends Animal  {void eat()    {  }  }  
分别插入到第5行,有多少行可以编译?   

参考答案:

  参考解析

本题暂无解析

在线 客服