试题详情
- 单项选择题 interface foo { int k = 0; } public class test implements Foo ( public static void main(String args) ( int i; Test test = new test (); i= test.k; i= Test.k; i= Foo.k; ) ) What is the result? ()
A、 Compilation succeeds.
B、 An error at line 2 causes compilation to fail.
C、 An error at line 9 causes compilation to fail.
D、 An error at line 10 causes compilation to fail.
E、 An error at line 11 causes compilation to fail.
- A
关注下方微信公众号,在线模考后查看
热门试题
- 打印出所有的 "水仙花数 ",所谓 "水
- 现有如下五个声明: Lin
- Which two̳
- You have
- public class&e
- Which security
- class TestApp{
- 通过Ajax,客户端获取的数据主要有两种
- class Ifs{&ens
- 流式布局的常用设置参数有哪些?()
- 用“埃氏筛法”求2-100以内的素数。2
- Given a va
- 输入一个整数,求这个整数中每位数字相加的
- 创建一个服务器,用它请求用户输入密码,然
- 已知: 下面哪些语句在横线处可以正常编
- Click the
- 对于下面这段代码,以下说法正确的是:()
- For a gi
- Which two clas
- Which two̳