black

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

相关考题

单项选择题 下列有关接口的叙述错误的是哪项?()

多项选择题 下列有关抽象方法叙述正确的是哪项?()

单项选择题 下列有关抽象类的叙述正确的是哪项?()

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064