欢迎来到牛牛题库网 牛牛题库官网
logo
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

1. interface Animal {  
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

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题