单项选择题

自定义的异常类可从______类继承。

A.Error
B.AWTError
C.VirtualMachineError
D.Exception及其子集
<上一题 目录 下一题>
热门 试题

单项选择题
下面for循环语句的执行结果是______。 for(int j=10; j>3; j--) if(j%3! =0) j--; --j; --j; System. out. println(j);
A.63
B.74
C.62
D.73
单项选择题
下列程序的运行结果是______。 Public class sun Public static void main (String args[]) int x=4, y=0; if (Math. pow (x, 2)==16) y=x; if (Math. pow (x, 2)<15) y=1 x; if (Math. pow (x, 2)>15) y=(int)Math. pow (x, 2)+1; system. out. println(y);
A.4
B.17
C.18
D.0.25
相关试题
  • 请阅读下列程序代码,然后将程序的执行结果...
  • 在Java语言中,ObjectOutputStream是指__...
  • 下面程序段的输出结果是______。 pu...
  • Frame默认的布局管理器是______。
  • 栈中允许进行插入和删除的一端称为____...