填空题

在面向对象方法中,类之间共享属性和操作的机制称为 【2】 。

【参考答案】

继承
<上一题 目录 下一题>
热门 试题

单项选择题
下列代码的执行结果是public class Test public int aMethod() static int i=0; i++; System.out.println(i); public static void main(String args[]) Test test= new Test(); test. aMethod();
A.编译错误
B.0
C.1
D.运行成功,但不输出
单项选择题
在oneMethod()方法运行正常的情况下,程序段将输出public void test() try oneMethod(); System.out.println( condition 1 ); catch(ArrayIndexOutOfBoundsException e) System.out.println( condition 2 ); catch (Exception e) System.out.println( condition 3 ); finally System.out.println( finally );
A.condition 1
B.condition 2
C.condition 3
D.condition 1
finally
相关试题
  • 凡生成StringBuffer一个对象后,还可用 【...
  • 设a=8,则表达式a>>>2的值是 【13...
  • 【11】 日历类提供日期和时间的表示,它...
  • 若x=5,y=10,则x>y && x++=...
  • 下面程序的运行结果是 【9】 。import ...