题目内容

The British Cabinet consists of around 20 MPs and they are chosen by the Queen to become government ministers.

A. 对
B. 错

查看答案
更多问题

The House of Commons is the real centre of British political life.

A. 对
B. 错

以下程序的编译和运行结果为?abstract class Base{abstract public void myfunc();public void another(){System.out.println("Another method");}}public class Abs extends Base{public static void main(String argv[]){Abs a = new Abs();a.amethod();}public void myfunc(){System.out.println("My Func");}public void amethod(){myfunc();}}

A. 编译指示 Base 类中存在抽象方法
B. 输出结果为 My Func
C. 编译指示Base 类中的myfunc方法无方法体,没谁会喜欢该方法。
D. 编译通过,但运行时指示Base 类中存在抽象方法

以下代码的调试结果为?abstract class MineBase {abstract void amethod();static int i;}public class Mine extends MineBase{public static void main(String argv[]){int[] ar = new int[5];for(i = 0;i < ar.length;i++)System.out.println(ar[i]);}}

A. 输出5个0
B. 编译错误指示"ar 未初始化就使用"
C. 运行错误, i超出数组下标范围
D. 编译错误指示"Mine 必须定义为抽象类"

若在某一个类定义中定义有如下的方法: abstract void performDial( );该方法属于?

A. 本地方法
B. 多态方法
C. 抽象方法
D. 最终方法

答案查题题库